fooltip 0.0.6 → 0.0.7

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: a73a63925c22683bbccd304901a06838dd591e7f
4
- data.tar.gz: 8fb42a83da3f9ecc6443883755b6422c1df5f70d
3
+ metadata.gz: 85c2d6fabad7fff9d30b7d750c3e0041b58885c0
4
+ data.tar.gz: e141e6d0203d6c96fa58c6fb6988bc1cec8e3395
5
5
  SHA512:
6
- metadata.gz: da77d8c971837e18b3da84d403fde70cd8c0e32493076d03c5a0510cbd2f0a8634cfb354376de26e1dcdbed3e8d4d701ac2dd0f44dde3dd2d3ec2314b423536d
7
- data.tar.gz: 5d4e162e056847e799f1661f6e147baaef683348f5ab338a1084878e926fd2bd109b22140fcb2c368badeac6d0dc1a338cc751153a3f4c451e6932681a59b07f
6
+ metadata.gz: 7cf8661d45160324ecc7638119b91c7e9bffd726b03c3bfeb8a2a730680f3122601a107b5bb31a124605053e06afbd4c283f6fdc65b523eef2ca6afe0b0dda7f
7
+ data.tar.gz: 3fd681fcf5b3497be9bd3349658f190844d6f1eb99a628e2a545945dad72056f34ffa847db6ee5ce7b504d51f86b50a73c4e602e3d5b5456a02db685f91822ba
@@ -2,9 +2,10 @@ module Fooltip
2
2
  module ActiveRecord
3
3
 
4
4
  def has_fooltips
5
- attr_accessible :fooltip_ids
5
+ attr_accessible :fooltip_associations_attributes
6
6
  has_many :fooltip_associations, as: :owner, class_name: "Fooltip::Association", dependent: :destroy
7
7
  has_many :fooltips, through: :fooltip_associations, source: :container, class_name: "Fooltip::Container"
8
+ accepts_nested_attributes_for :fooltip_associations, reject_if: :all_blank, allow_destroy: true
8
9
  end
9
10
 
10
11
  end
@@ -1,3 +1,3 @@
1
1
  module Fooltip
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fooltip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Intesys S.r.l.
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-29 00:00:00.000000000 Z
12
+ date: 2013-04-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails