lrd_view_tools 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,9 +2,6 @@
2
2
  module LRD
3
3
  module FormHelper
4
4
 
5
- def self.included(arg)
6
- ActionView::Helpers::FormBuilder.send(:include, LRD::FormBuilder)
7
- end
8
5
 
9
6
  # Returns a <div> containing a label, an input, and an option comment
10
7
  # block, pre-styled in LRD style.
@@ -4,8 +4,12 @@ require File.join(File.dirname(__FILE__), 'app', 'helpers', 'lrd_form_helper')
4
4
 
5
5
  module LRD::DevTools
6
6
  class Railtie < Rails::Railtie
7
- ActionController::Base.helper(LRD::ViewHelper)
8
- ActionController::Base.helper(LRD::DebugHelper)
9
- ActionView::Helpers::FormHelper.send(:include, LRD::FormHelper)
7
+ initializer "LRDDevTools" do
8
+ ActionController::Base.helper(LRD::ViewHelper)
9
+ ActionController::Base.helper(LRD::DebugHelper)
10
+ ActionView::Helpers::FormHelper.send(:include, LRD::FormHelper)
11
+ ActionView::Base.send(:include, LRD::FormHelper)
12
+ ActionView::Helpers::FormBuilder.send(:include, LRD::FormBuilder)
13
+ end
10
14
  end
11
15
  end
metadata CHANGED
@@ -1,21 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lrd_view_tools
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
- - Evan Dorn
13
+ - Evan Dorn Judson Lester
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-02 00:00:00 -07:00
18
+ date: 2011-08-29 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies: []
21
21