Module: SslRequirement::ClassMethods
- Defined in:
- lib/ssl_requirement.rb
Instance Method Summary collapse
- #ssl_allowed(*actions) ⇒ Object
- #ssl_exceptions(*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).
Instance Method Details
#ssl_allowed(*actions) ⇒ Object
49 50 51 |
# File 'lib/ssl_requirement.rb', line 49 def ssl_allowed(*actions) write_inheritable_array(:ssl_allowed_actions, actions) end |
#ssl_exceptions(*actions) ⇒ Object
45 46 47 |
# File 'lib/ssl_requirement.rb', line 45 def ssl_exceptions(*actions) write_inheritable_array(:ssl_required_except_actions, 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).
41 42 43 |
# File 'lib/ssl_requirement.rb', line 41 def ssl_required(*actions) write_inheritable_array(:ssl_required_actions, actions) end |