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
@@ -21,7 +21,6 @@ RDoc::Task.new(:rdoc) do |rdoc|
21
21
  end
22
22
 
23
23
  APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
24
- load 'rails/tasks/engine.rake'
25
24
 
26
25
 
27
26
 
@@ -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
- label "Sellables"
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
@@ -1,3 +1,3 @@
1
1
  module PiggybakTaxonomy
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: piggybak_taxonomy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
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: 2012-12-03 00:00:00.000000000 Z
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: 3714972085742718943
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: 3714972085742718943
111
+ hash: -2432428167806040533
112
112
  requirements: []
113
113
  rubyforge_project:
114
114
  rubygems_version: 1.8.23