Class: ActiveTouch::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/active_touch/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#asyncObject

Returns the value of attribute async.



16
17
18
# File 'lib/active_touch/configuration.rb', line 16

def async
  @async
end

#ignored_attributesObject

Returns the value of attribute ignored_attributes.



16
17
18
# File 'lib/active_touch/configuration.rb', line 16

def ignored_attributes
  @ignored_attributes
end

#queueObject

Returns the value of attribute queue.



16
17
18
# File 'lib/active_touch/configuration.rb', line 16

def queue
  @queue
end

#timestamp_attributeObject

Returns the value of attribute timestamp_attribute.



16
17
18
# File 'lib/active_touch/configuration.rb', line 16

def timestamp_attribute
  @timestamp_attribute
end

#touch_in_transactionObject

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_updatesObject

Returns the value of attribute touch_updates.



16
17
18
# File 'lib/active_touch/configuration.rb', line 16

def touch_updates
  @touch_updates
end