cable_menu 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/cable_menu.gemspec +1 -1
- data/lib/cable_menu/acts_as_cable.rb +2 -2
- data/lib/cable_menu/acts_as_cable_menu.rb +2 -2
- metadata +3 -3
data/cable_menu.gemspec
CHANGED
@@ -5,9 +5,9 @@ module Cable
|
|
5
5
|
end
|
6
6
|
|
7
7
|
module ClassMethods
|
8
|
-
def acts_as_cable
|
8
|
+
def acts_as_cable( reflection_options = {} )
|
9
9
|
send :include, InstanceMethods
|
10
|
-
has_one :menu, :as => :cable_menuable
|
10
|
+
has_one :menu, reflection_options.merge( :as => :cable_menuable )
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
@@ -5,9 +5,9 @@ module CableMenu
|
|
5
5
|
end
|
6
6
|
|
7
7
|
module ClassMethods
|
8
|
-
def acts_as_cable_menu
|
8
|
+
def acts_as_cable_menu( reflection_options = {} )
|
9
9
|
send :include, InstanceMethods
|
10
|
-
belongs_to :cable_menuable, :polymorphic => true
|
10
|
+
belongs_to :cable_menuable, reflection_options.merge( :polymorphic => true )
|
11
11
|
acts_as_nested_set
|
12
12
|
end
|
13
13
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cable_menu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Spencer Markowski | The Able Few
|