acts_as_metable 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acts_as_metable/metable.rb +3 -1
- data/lib/acts_as_metable/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a70373b977cf7b9662f387d7c5dadaa1b5ba5cb
|
4
|
+
data.tar.gz: e57d271747a12beef70ab24464cc69ce91e519eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71c3036e885fd1207827561319a7e19fc5714d5975966ab1b54cb1340225c6899d6002ca84138f97e4bd314e6c023d2333f010d2d2c6f7da869e50cea9995927
|
7
|
+
data.tar.gz: 04e4055f21679724a01d325afc84fd14a2b88ad1356b1d4dc42c0fe1ad83e0164e18e329dbb00ec0ba8f9fb2fb0a032d71a21b3bd3d421a870c85a127751d0ca
|
@@ -2,7 +2,9 @@ module ::ActsAsMetable
|
|
2
2
|
module Metable
|
3
3
|
def acts_as_metable
|
4
4
|
class_eval do
|
5
|
-
has_many :meta_tags, dependent: :destroy, class_name: '::ActsAsMetable::Tag', :foreign_key => :metable_id
|
5
|
+
has_many :meta_tags, as: :metable, dependent: :destroy, class_name: '::ActsAsMetable::Tag', :foreign_key => :metable_id
|
6
|
+
|
7
|
+
accepts_nested_attributes_for :meta_tags
|
6
8
|
end
|
7
9
|
end
|
8
10
|
end
|