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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4fde97be2ab1080457824a617aaf8cd91acaeeb
4
- data.tar.gz: 180ede078992c92f479772f33a531ebcdb19fdb1
3
+ metadata.gz: 2a70373b977cf7b9662f387d7c5dadaa1b5ba5cb
4
+ data.tar.gz: e57d271747a12beef70ab24464cc69ce91e519eb
5
5
  SHA512:
6
- metadata.gz: 605bde5e4d15d0d86233c31512c7690852e10247ceccc738dbc6005200990569e582eff7358b425e182b7ffb16d872be12d7e2ffbc88fad2eaae87ad43938bfd
7
- data.tar.gz: e911fef4978f1f3e6dc4ef9d1f4291fab562fca85bf480026ceff048beef7a080995cdee6bfdd4f7837e838782a7610290fb090771a5592bec087dbe1d968ce4
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
@@ -1,3 +1,3 @@
1
1
  module ActsAsMetable
2
- VERSION = "0.0.3"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_metable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Novikov