ninja-model 0.5.2 → 0.5.3

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.
@@ -1,7 +1,7 @@
1
1
  module NinjaModel
2
2
  class Railtie < Rails::Railtie
3
3
 
4
- config.ninja_model = ActiveSupport::OrderedOptions.new
4
+ config.ninja_model = NinjaModel.configuration
5
5
 
6
6
  config.app_middleware.insert_after "::ActionDispatch::Callbacks",
7
7
  "NinjaModel::Adapters::AdapterManagement"
@@ -1,3 +1,3 @@
1
1
  module NinjaModel
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
data/lib/ninja_model.rb CHANGED
@@ -19,7 +19,7 @@ module NinjaModel
19
19
  end
20
20
 
21
21
  def configuration
22
- Rails.application.config.ninja_model
22
+ @config ||= ActiveSupport::OrderedOptions.new
23
23
  end
24
24
  end
25
25
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ninja-model
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
5
- prerelease: false
4
+ hash: 13
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 2
10
- version: 0.5.2
9
+ - 3
10
+ version: 0.5.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh Williams
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-01 00:00:00 -05:00
19
- default_executable:
18
+ date: 2011-06-13 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: activerecord
@@ -181,7 +180,6 @@ files:
181
180
  - spec/spec_helper.rb
182
181
  - spec/support/active_model_lint.rb
183
182
  - spec/support/matchers/convert.rb
184
- has_rdoc: true
185
183
  homepage: http://github.com/t3hpr1m3/ninja-model.git
186
184
  licenses: []
187
185
 
@@ -211,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
209
  requirements: []
212
210
 
213
211
  rubyforge_project: ninja-model
214
- rubygems_version: 1.3.7
212
+ rubygems_version: 1.7.2
215
213
  signing_key:
216
214
  specification_version: 3
217
215
  summary: Pseudo-ORM for Ruby
@@ -235,3 +233,4 @@ test_files:
235
233
  - spec/spec_helper.rb
236
234
  - spec/support/active_model_lint.rb
237
235
  - spec/support/matchers/convert.rb
236
+ has_rdoc: