Module: SslRequirement::ClassMethods
- Defined in:
- lib/merb-ssl-requirement/ssl_requirement.rb
Instance Method Summary collapse
- #ssl_allowed(*actions) ⇒ Object
- #ssl_allowed_actions ⇒ Object
-
#ssl_required(*actions) ⇒ Object
Specifies that the named actions requires an SSL connection to be performed (which is enforced by ensure_proper_protocol).
- #ssl_required_actions ⇒ Object
Instance Method Details
#ssl_allowed(*actions) ⇒ Object
35 36 37 |
# File 'lib/merb-ssl-requirement/ssl_requirement.rb', line 35 def ssl_allowed(*actions) self.ssl_allowed_actions.push(*actions) end |
#ssl_allowed_actions ⇒ Object
43 44 45 |
# File 'lib/merb-ssl-requirement/ssl_requirement.rb', line 43 def ssl_allowed_actions @ssl_allowed_actions ||= [] end |
#ssl_required(*actions) ⇒ Object
Specifies that the named actions requires an SSL connection to be performed (which is enforced by ensure_proper_protocol).
31 32 33 |
# File 'lib/merb-ssl-requirement/ssl_requirement.rb', line 31 def ssl_required(*actions) self.ssl_required_actions.push(*actions) end |
#ssl_required_actions ⇒ Object
39 40 41 |
# File 'lib/merb-ssl-requirement/ssl_requirement.rb', line 39 def ssl_required_actions @ssl_required_actions ||= [] end |