coded_options 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module CodedOptions
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -0,0 +1,7 @@
1
+ module CodedOptions
2
+ class Railtie < Rails::Railtie
3
+ initializer "coded_options.initialize" do |app|
4
+ ActiveRecord::Base.send :extend, CodedOptions
5
+ end
6
+ end
7
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coded_options
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jason Dew
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-11 00:00:00 -04:00
18
+ date: 2010-10-13 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -32,11 +32,11 @@ files:
32
32
  - lib/coded_options/base.rb
33
33
  - lib/coded_options/version.rb
34
34
  - lib/coded_options.rb
35
+ - lib/rails/coded_options.rb
35
36
  - LICENSE
36
37
  - CHANGELOG.md
37
38
  - README.md
38
39
  - ROADMAP.md
39
- - init.rb
40
40
  has_rdoc: true
41
41
  homepage: http://github.com/jasondew/coded_options
42
42
  licenses: []
data/init.rb DELETED
@@ -1,9 +0,0 @@
1
- if ActiveSupport.methods.include?("on_load")
2
- # rails 3
3
- ActiveSupport.on_load(:active_record) do
4
- ActiveRecord::Base.send(:extend, CodedOptions)
5
- end
6
- else
7
- # rails 2
8
- ActiveRecord::Base.send(:extend, CodedOptions)
9
- end