Class: ActiveTouch::Configuration
- Inherits:
-
Object
- Object
- ActiveTouch::Configuration
- Defined in:
- lib/active_touch/configuration.rb
Instance Attribute Summary collapse
-
#async ⇒ Object
Returns the value of attribute async.
-
#ignored_attributes ⇒ Object
Returns the value of attribute ignored_attributes.
-
#queue ⇒ Object
Returns the value of attribute queue.
-
#timestamp_attribute ⇒ Object
Returns the value of attribute timestamp_attribute.
-
#touch_in_transaction ⇒ Object
Returns the value of attribute touch_in_transaction.
-
#touch_updates ⇒ Object
Returns the value of attribute touch_updates.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
18 19 20 21 22 23 24 25 |
# File 'lib/active_touch/configuration.rb', line 18 def initialize @async = false @ignored_attributes = [:updated_at] @queue = 'default' @timestamp_attribute = :updated_at @touch_in_transaction = true @touch_updates = {} end |
Instance Attribute Details
#async ⇒ Object
Returns the value of attribute async.
16 17 18 |
# File 'lib/active_touch/configuration.rb', line 16 def async @async end |
#ignored_attributes ⇒ Object
Returns the value of attribute ignored_attributes.
16 17 18 |
# File 'lib/active_touch/configuration.rb', line 16 def ignored_attributes @ignored_attributes end |
#queue ⇒ Object
Returns the value of attribute queue.
16 17 18 |
# File 'lib/active_touch/configuration.rb', line 16 def queue @queue end |
#timestamp_attribute ⇒ Object
Returns the value of attribute timestamp_attribute.
16 17 18 |
# File 'lib/active_touch/configuration.rb', line 16 def @timestamp_attribute end |
#touch_in_transaction ⇒ Object
Returns the value of attribute touch_in_transaction.
16 17 18 |
# File 'lib/active_touch/configuration.rb', line 16 def touch_in_transaction @touch_in_transaction end |
#touch_updates ⇒ Object
Returns the value of attribute touch_updates.
16 17 18 |
# File 'lib/active_touch/configuration.rb', line 16 def touch_updates @touch_updates end |