Module: OpenStax::Utilities::Access
- Defined in:
- lib/openstax/utilities/access.rb
Class Method Summary collapse
-
.protect_beta(options = {}) ⇒ Object
Called in a controller to provide an outer level of basic HTTP authentication, typically used when code is deployed during development and it is not yet ready for public consumption.
-
.skip_protect_beta(options = {}) ⇒ Object
Called in a controller to skip the beta protection enabled elsewhere (e.g. in a parent controller).
Class Method Details
.protect_beta(options = {}) ⇒ Object
Called in a controller to provide an outer level of basic HTTP authentication, typically used when code is deployed during development and it is not yet ready for public consumption.
47 48 49 |
# File 'lib/openstax/utilities/access.rb', line 47 def self.protect_beta(={}) # Just here for documentation purposes, see code above end |
.skip_protect_beta(options = {}) ⇒ Object
Called in a controller to skip the beta protection enabled elsewhere (e.g. in a parent controller). Takes options like skip_before_filter
61 62 63 |
# File 'lib/openstax/utilities/access.rb', line 61 def self.skip_protect_beta(={}) # Just here for documentation purposes, see code above end |