daddys_girl 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/daddys_girl.rb +2 -2
- metadata +3 -3
data/lib/daddys_girl.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
ActiveRecord::Base.class_eval do
|
2
2
|
class << self
|
3
3
|
def symbol
|
4
4
|
self.name.underscore.to_sym
|
@@ -20,7 +20,7 @@ class ActiveRecord::Base
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
|
23
|
+
ActiveRecord::Associations::AssociationProxy.class_eval do
|
24
24
|
def target_class_symbol
|
25
25
|
self.symbol
|
26
26
|
end
|
metadata
CHANGED