Module: SslRequirement::ClassMethods

Defined in:
lib/merb-ssl-requirement/ssl_requirement.rb

Instance Method Summary collapse

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_actionsObject



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_actionsObject



39
40
41
# File 'lib/merb-ssl-requirement/ssl_requirement.rb', line 39

def ssl_required_actions
  @ssl_required_actions ||= []
end