recordselect_vho 3.1.100 → 3.1.101

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,26 @@
1
1
  module RecordSelect
2
2
  class Engine < Rails::Engine
3
+ initializer('initialize_record_select') do
4
+ ActiveSupport.on_load(:action_controller) do
5
+ require 'record_select/extensions/localization'
6
+ require 'record_select/extensions/routing_mapper'
7
+ require 'record_select/actions'
8
+ require 'record_select/conditions'
9
+ require 'record_select/config'
10
+
11
+ include RecordSelect
12
+ end
13
+
14
+ ActiveSupport.on_load(:action_view) do
15
+ require 'record_select/form_builder'
16
+ require 'record_select/helpers/record_select_helper'
17
+ include RecordSelectHelper
18
+ ActionView::Helpers::FormBuilder.send(:include, RecordSelect::FormBuilder)
19
+ end
20
+
21
+ ActiveSupport.on_load(:active_record) do
22
+ require 'record_select/extensions/active_record'
23
+ end
24
+ end
3
25
  end
4
26
  end
@@ -2,7 +2,7 @@ module RecordSelect
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
- PATCH = 100
5
+ PATCH = 101
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
data/lib/recordselect.rb CHANGED
@@ -1,14 +1,3 @@
1
1
  require 'record_select'
2
- require 'record_select/extensions/localization'
3
- require 'record_select/extensions/active_record'
4
- require 'record_select/extensions/routing_mapper'
5
- require 'record_select/actions'
6
- require 'record_select/conditions'
7
- require 'record_select/config'
8
- require 'record_select/form_builder'
9
- require 'record_select/helpers/record_select_helper'
10
- require 'record_select/engine' unless defined? RECORD_SELECT_PLUGIN
11
2
 
12
- ActionController::Base.send(:include, RecordSelect)
13
- ActionView::Base.send(:include, RecordSelectHelper)
14
- ActionView::Helpers::FormBuilder.send(:include, RecordSelect::FormBuilder)
3
+ require 'record_select/engine'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 3
7
7
  - 1
8
- - 100
9
- version: 3.1.100
8
+ - 101
9
+ version: 3.1.101
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sergio Cambra
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-01-10 00:00:00 +01:00
19
+ date: 2012-02-11 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -126,7 +126,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
126
126
  requirements:
127
127
  - - ">="
128
128
  - !ruby/object:Gem::Version
129
- hash: -2910815514046126153
129
+ hash: 845830484258945921
130
130
  segments:
131
131
  - 0
132
132
  version: "0"