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 "      def add_holder_\#{ o }_id= i\n        @add_holder_\#{ o }_id = i\n\n        self.add_holder_object_id = \#{ o.to_s.classify }.find(i).activity_object_id\n      end\n    EOM\n  end\nend\n"