piggybak_taxonomy 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ module PiggybakTaxonomy
|
|
9
9
|
validates_presence_of :sellable, :sort
|
10
10
|
|
11
11
|
def admin_label
|
12
|
-
"#{self.sellable.description.gsub('"', '"')} (#{self.sort})"
|
12
|
+
self.sellable ? "#{self.sellable.description.gsub('"', '"')} (#{self.sort})" : "New"
|
13
13
|
end
|
14
14
|
|
15
15
|
# TODO: Add as configuration
|
@@ -22,8 +22,10 @@ module PiggybakTaxonomy
|
|
22
22
|
initializer "piggybak_taxonomy.rails_admin_config" do |app|
|
23
23
|
RailsAdmin.config do |config|
|
24
24
|
config.model PiggybakTaxonomy::SellableTaxonomy do
|
25
|
-
|
25
|
+
navigation_label "Extensions"
|
26
|
+
label "Navigation Node Sellables"
|
26
27
|
edit do
|
28
|
+
field :navigation_node
|
27
29
|
field :sellable
|
28
30
|
field :sort
|
29
31
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: piggybak_taxonomy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -99,7 +99,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
99
99
|
version: '0'
|
100
100
|
segments:
|
101
101
|
- 0
|
102
|
-
hash:
|
102
|
+
hash: -2432428167806040533
|
103
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
104
|
none: false
|
105
105
|
requirements:
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
version: '0'
|
109
109
|
segments:
|
110
110
|
- 0
|
111
|
-
hash:
|
111
|
+
hash: -2432428167806040533
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
114
|
rubygems_version: 1.8.23
|