coded_options 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/init.rb +9 -0
  2. data/lib/coded_options/version.rb +1 -1
  3. metadata +5 -4
data/init.rb ADDED
@@ -0,0 +1,9 @@
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
@@ -1,3 +1,3 @@
1
1
  module CodedOptions
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  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: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
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-10 00:00:00 -04:00
18
+ date: 2010-10-11 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -36,6 +36,7 @@ files:
36
36
  - CHANGELOG.md
37
37
  - README.md
38
38
  - ROADMAP.md
39
+ - init.rb
39
40
  has_rdoc: true
40
41
  homepage: http://github.com/jasondew/coded_options
41
42
  licenses: []