Class: MuchRails::MuchRailsConfig::ActionConfig
- Inherits:
-
Object
- Object
- MuchRails::MuchRailsConfig::ActionConfig
- Defined in:
- lib/much-rails.rb
Instance Attribute Summary collapse
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#raise_response_exceptions ⇒ Object
Returns the value of attribute raise_response_exceptions.
-
#sanitized_exception_classes ⇒ Object
Returns the value of attribute sanitized_exception_classes.
Instance Method Summary collapse
-
#initialize ⇒ ActionConfig
constructor
A new instance of ActionConfig.
- #raise_response_exceptions? ⇒ Boolean
Constructor Details
#initialize ⇒ ActionConfig
Returns a new instance of ActionConfig.
64 65 66 67 68 |
# File 'lib/much-rails.rb', line 64 def initialize @namespace = "" @sanitized_exception_classes = [ActiveRecord::RecordInvalid] @raise_response_exceptions = false end |
Instance Attribute Details
#namespace ⇒ Object
Returns the value of attribute namespace.
60 61 62 |
# File 'lib/much-rails.rb', line 60 def namespace @namespace end |
#raise_response_exceptions ⇒ Object
Returns the value of attribute raise_response_exceptions.
62 63 64 |
# File 'lib/much-rails.rb', line 62 def raise_response_exceptions @raise_response_exceptions end |
#sanitized_exception_classes ⇒ Object
Returns the value of attribute sanitized_exception_classes.
61 62 63 |
# File 'lib/much-rails.rb', line 61 def sanitized_exception_classes @sanitized_exception_classes end |
Instance Method Details
#raise_response_exceptions? ⇒ Boolean
70 71 72 |
# File 'lib/much-rails.rb', line 70 def raise_response_exceptions? !!@raise_response_exceptions end |