Module: Yaffle::ActsAsYaffle::ClassMethods

Defined in:
lib/dienho/acts_as_yaffle.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_yaffle(options = {}) ⇒ Object



11
12
13
14
15
16
# File 'lib/dienho/acts_as_yaffle.rb', line 11

def acts_as_yaffle(options = {})
  cattr_accessor :yaffle_text_field
  self.yaffle_text_field = (options[:yaffle_text_field] || :last_squawk).to_s
 
  include Yaffle::ActsAsYaffle::LocalInstanceMethods
end