fooltip 0.0.3 → 0.0.4

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: cd13f30e6362e8a821126441289d6d44da20d92a
4
- data.tar.gz: 1c7b45326c0bcf73d882b0de6eaf674630b91a8c
3
+ metadata.gz: e7717b3d38001e2692490e7dd16703f619f03d0a
4
+ data.tar.gz: 63b0720622af447e65c634dda399a749e530cb89
5
5
  SHA512:
6
- metadata.gz: a7d5267667d6231ac7da360ada35773d72e5d8fe64c3eaa49f1cee8082f93e8e20f19f58e805d58810fd5f8f2bdb4b203b7a57451f54c2f2d5f5b7da03e02505
7
- data.tar.gz: 3213a2fcb44f073c2728d1766d336ae8a850ed27cb9c1d17473ac6ab47f74e5d516f569f7455c045f8d60fe107330fabb96bfa12d07e5241817fe4b6b1b5cda3
6
+ metadata.gz: a5cc02a58bda185ddcfd7c11f9b681a9bcad6b3beca50b3ca2d1c532533e3ba498d9a5eeeb934abf1bae8f9ac1946d60fc04e94dfcf7916b5279b2ff9af8963e
7
+ data.tar.gz: 89546107dbd2d5d28f29ce0efcad7edcbaf528f91579adf128b647dfbe05bbf105c3713456a43d7d15894c7417878a158a54bea9ca4006e460e0d134a4bfe284
@@ -6,6 +6,7 @@
6
6
  float: left
7
7
  .popover
8
8
  max-width: none
9
+ width: auto
9
10
 
10
11
  .fooltip-link-container
11
12
  position: absolute
@@ -4,5 +4,6 @@ module Fooltip
4
4
  translates :title, :description, fallbacks_for_empty_translations: true
5
5
  attr_accessible :description, :title
6
6
  has_many :links, dependent: :destroy
7
+ has_many :associations, dependent: :destroy
7
8
  end
8
9
  end
@@ -1,11 +1,10 @@
1
1
  module Fooltip
2
2
  module ActiveRecord
3
3
 
4
- def has_fooltips(options = {})
5
- #options.assert_valid_keys(:x)
6
-
4
+ def has_fooltips
7
5
  attr_accessible :fooltip_ids
8
- has_many :fooltips, class_name: "Fooltip::Association", as: :owner, source: "Fooltip::Container"
6
+ has_many :fooltip_associations, as: :owner, class_name: "Fooltip::Association", dependent: :destroy
7
+ has_many :fooltips, through: :fooltip_associations, source: :container, class_name: "Fooltip::Container"
9
8
  end
10
9
 
11
10
  end
@@ -1,3 +1,3 @@
1
1
  module Fooltip
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Intesys S.r.l.