Class: MuchRails::MuchRailsConfig::ActionConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/much-rails.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeActionConfig

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

#namespaceObject

Returns the value of attribute namespace.



60
61
62
# File 'lib/much-rails.rb', line 60

def namespace
  @namespace
end

#raise_response_exceptionsObject

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_classesObject

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

Returns:



70
71
72
# File 'lib/much-rails.rb', line 70

def raise_response_exceptions?
  !!@raise_response_exceptions
end