Method: Pageflow::Configuration#public_https_mode

Defined in:
lib/pageflow/configuration.rb

#public_https_modeObject

How to handle https requests for URLs which will have assets in the page. If you wish to serve all assets over http and prevent mixed-content warnings, you can force a redirect to http. The inverse is also true: you can force a redirect to https for all http requests.

Examples:


config.public_https_mode = :prevent (default) # => redirects https to http
config.public_https_mode = :enforce # => redirects http to https
config.public_https_mode = :ignore # => does nothing

Since:

  • 0.9



214
215
216
# File 'lib/pageflow/configuration.rb', line 214

def public_https_mode
  @public_https_mode
end