Class: Object

Inherits:
BasicObject
Defined in:
lib/peaty/integration.rb

Class Method Summary collapse

Class Method Details

.pivotal_tracker_for(attribute, options = {}) ⇒ Object



28
29
30
31
32
33
34
35
36
# File 'lib/peaty/integration.rb', line 28

def self.pivotal_tracker_for(attribute, options = {})
  options = options.with_indifferent_access
  options.reverse_merge!( :attribute => attribute,
                          :method_prefix => :pivotal_tracker )
  
  class << self; attr_accessor :__pivotal_tracker_options; end
  self.__pivotal_tracker_options = options
  self.send(:include, Peaty::Integration)
end