lib/ssl_requirement.rb
# Returns true if the current action is supposed to run as SSL
Returns true if the current action is supposed to run as SSL
Returns true if the current action is supposed to run as SSL
def ssl_required?
    required = (self.class.read_inheritable_attribute(:ssl_required_actions) || [])
    except  = self.class.read_inheritable_attribute(:ssl_required_except_actions)
    unless except
      required == [:all] || required.include?(action_name.to_sym)
    else
      required != [:all] && !except.include?(action_name.to_sym)
    end
  end
def ssl_required? required = ( self . class . read_inheritable_attribute ( :ssl_required_actions ) || [ ] ) except = self . class . read_inheritable_attribute ( :ssl_required_except_actions ) unless except required == [ :all ] || required . include? ( action_name . to_sym ) else required != [ :all ] && ! except . include? ( action_name . to_sym ) end end
Returns true if the current action is supposed to run as SSL
Returns true if the current action is supposed to run as SSL