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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7717b3d38001e2692490e7dd16703f619f03d0a
|
4
|
+
data.tar.gz: 63b0720622af447e65c634dda399a749e530cb89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5cc02a58bda185ddcfd7c11f9b681a9bcad6b3beca50b3ca2d1c532533e3ba498d9a5eeeb934abf1bae8f9ac1946d60fc04e94dfcf7916b5279b2ff9af8963e
|
7
|
+
data.tar.gz: 89546107dbd2d5d28f29ce0efcad7edcbaf528f91579adf128b647dfbe05bbf105c3713456a43d7d15894c7417878a158a54bea9ca4006e460e0d134a4bfe284
|
@@ -1,11 +1,10 @@
|
|
1
1
|
module Fooltip
|
2
2
|
module ActiveRecord
|
3
3
|
|
4
|
-
def has_fooltips
|
5
|
-
#options.assert_valid_keys(:x)
|
6
|
-
|
4
|
+
def has_fooltips
|
7
5
|
attr_accessible :fooltip_ids
|
8
|
-
has_many :
|
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
|
data/lib/fooltip/version.rb
CHANGED