daddys_girl 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/daddys_girl.rb +2 -2
  2. metadata +3 -3
data/lib/daddys_girl.rb CHANGED
@@ -1,4 +1,4 @@
1
- class ActiveRecord::Base
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
- class ActiveRecord::Associations::AssociationProxy
23
+ ActiveRecord::Associations::AssociationProxy.class_eval do
24
24
  def target_class_symbol
25
25
  self.symbol
26
26
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daddys_girl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
9
- version: "0.2"
8
+ - 3
9
+ version: "0.3"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kurt Preston