Module: SslRequirement::ClassMethods

Defined in:
lib/ssl_requirement.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) ssl_allowed(*actions)



33
34
35
# File 'lib/ssl_requirement.rb', line 33

def ssl_allowed(*actions)
  write_inheritable_array(:ssl_allowed_actions, actions)
end

- (Object) ssl_required(*actions)

Specifies that the named actions requires an SSL connection to be performed (which is enforced by ensure_proper_protocol).



29
30
31
# File 'lib/ssl_requirement.rb', line 29

def ssl_required(*actions)
  write_inheritable_array(:ssl_required_actions, actions)
end