plant 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bba9b538452eac1f4dfaefeb3f4c7a8c1c4a991a
4
- data.tar.gz: f04525ade799e3f18ffff45adcdd2e7153f34372
3
+ metadata.gz: 418040641f47041285d288499783ea52eb48454e
4
+ data.tar.gz: 80df8d53f973d6a82aeb85046a2437365598d12e
5
5
  SHA512:
6
- metadata.gz: 0bd0763eaf431fe891871e191527f83dea46ebc9478279f01cb866b1a14e4f063ae27ded0d06ff884358e56445017fe0e538f1f3611f8d84d713db1f2ade9e92
7
- data.tar.gz: 739f7e7af8fce53bfbc50a9cf8ff670dfb27b87588cb4bb955545bd6879772447ebb03c573cf38adcbe3db3a1cabdf66039cbd735f132f78e0f876631f774a47
6
+ metadata.gz: 2854a05bc3ccb4ac2670adbeae5375c9142498f1611904ca275624c0b6e808069b0d7e0f57a6e0364c7b90d776b9373510ebc89aa6fa7dd18d7e2f2af9f780e8
7
+ data.tar.gz: 73fa9523b9a6f5abdef241921e78a3f57ba6bd3134b38bb094807f7d31c266779d0071f28ed97a6f87d03fbcf7d8147ff1acb0c8ff96960adbfab4aca2495fa3
@@ -1,7 +1,7 @@
1
1
  # Helpers
2
2
  module Plant
3
3
  # Namespace application helper for writing to page
4
- module ApplicationHelper
4
+ module PlantHelper
5
5
  def get_content_for(node, user)
6
6
  Plant::Content.get_node_content(node, user)
7
7
  end
data/lib/plant/engine.rb CHANGED
@@ -9,5 +9,10 @@ module Plant
9
9
  g.assets false
10
10
  g.helper false
11
11
  end
12
+ initializer 'plant.action_controller' do
13
+ ActiveSupport.on_load :action_controller do
14
+ helper Plant::PlantHelper
15
+ end
16
+ end
12
17
  end
13
18
  end
data/lib/plant/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # Version file
2
2
  module Plant
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yule
@@ -173,7 +173,7 @@ extra_rdoc_files: []
173
173
  files:
174
174
  - README.rdoc
175
175
  - Rakefile
176
- - app/helpers/plant/application_helper.rb
176
+ - app/helpers/plant/plant_helper.rb
177
177
  - app/models/plant/content.rb
178
178
  - db/migrate/20150820134825_create_plant_contents.rb
179
179
  - lib/plant.rb