Class: Protector::Config

Inherits:
ActiveSupport::OrderedOptions
  • Object
show all
Defined in:
lib/protector.rb

Overview

Internal protector config holder

Instance Method Summary collapse

Instance Method Details

#paranoid?Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/protector.rb', line 48

def paranoid?
  !!paranoid
end

#strong_parameters?Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/protector.rb', line 52

def strong_parameters?
  strong_parameters.nil? || !!strong_parameters
end