acts_as_dynamic_method 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -51,9 +51,14 @@ module ActsAsDynamicMethod
|
|
51
51
|
end
|
52
52
|
|
53
53
|
if defined?(ActiveRecord::Base)
|
54
|
-
ActiveRecord::Base.send :
|
54
|
+
ActiveRecord::Base.send :extend, ActsAsDynamicMethod::ClassMethods
|
55
55
|
else
|
56
56
|
Object.send :include, ActsAsDynamicMethod::ClassMethods
|
57
57
|
end
|
58
58
|
|
59
|
+
# def self.included(receiver)
|
60
|
+
# receiver.extend ClassMethods
|
61
|
+
# receiver.send :include, InstanceMethods
|
62
|
+
# end
|
63
|
+
|
59
64
|
end
|