Module: SslRequirement::ClassMethods

Defined in:
lib/spree_core/ssl_requirement.rb

Instance Method Summary collapse

Instance Method Details

#ssl_allowed(*actions) ⇒ Object



67
68
69
# File 'lib/spree_core/ssl_requirement.rb', line 67

def ssl_allowed(*actions)
  write_inheritable_array(:ssl_allowed_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).



63
64
65
# File 'lib/spree_core/ssl_requirement.rb', line 63

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