simonmenke-view_slots 0.0.3 → 0.0.4

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.
Files changed (3) hide show
  1. data/lib/view_slots/helper.rb +4 -0
  2. data/rails/init.rb +1 -1
  3. metadata +4 -4
@@ -1,6 +1,10 @@
1
1
  module ViewSlots
2
2
  module Helper
3
3
 
4
+ def self.included(base)
5
+ base.send :helper_method, :slot
6
+ end
7
+
4
8
  def slot(name, options={})
5
9
  return '' unless slot = ::ViewSlots.find(name)
6
10
  returning "" do |content|
data/rails/init.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # Include hook code here
2
2
 
3
3
  ::ViewSlots
4
- ::ActionController::Base.send :helper, ::ViewSlots::Helper
4
+ ::ActionController::Base.send :include, ::ViewSlots::Helper
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simonmenke-view_slots
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Menke
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-14 00:00:00 -07:00
12
+ date: 2009-05-26 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -22,14 +22,14 @@ extensions: []
22
22
  extra_rdoc_files: []
23
23
 
24
24
  files:
25
- - test/test_helper.rb
26
- - test/view_slots_test.rb
27
25
  - lib/view_slots/helper.rb
28
26
  - lib/view_slots/namespace.rb
29
27
  - lib/view_slots/slot.rb
30
28
  - lib/view_slots.rb
31
29
  - rails/init.rb
32
30
  - tasks/view_slots_tasks.rake
31
+ - test/test_helper.rb
32
+ - test/view_slots_test.rb
33
33
  has_rdoc: false
34
34
  homepage: http://github.com/simonmenke/view_slots
35
35
  post_install_message: