Module: ActivityObject::Properties::HolderMethods
- Included in:
- ActivityObject::Properties
- Defined in:
- app/models/activity_object/properties.rb
Instance Method Summary collapse
Instance Method Details
#holder_methods(objects) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 |
# File 'app/models/activity_object/properties.rb', line 24 def holder_methods objects objects.each do |o| module_eval <<-EOM def add_holder_#{ o }_id= i @add_holder_#{ o }_id = i self.add_holder_object_id = #{ o.to_s.classify }.find(i).activity_object_id end EOM end end |