choices 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/choices/rails.rb +1 -1
- metadata +6 -6
data/lib/choices/rails.rb
CHANGED
@@ -17,7 +17,7 @@ module Choices::Rails
|
|
17
17
|
root = self.respond_to?(:root) ? self.root : Rails.root
|
18
18
|
file = root + 'config' + name
|
19
19
|
|
20
|
-
settings = Choices.load_settings(file, RAILS_ENV)
|
20
|
+
settings = Choices.load_settings(file, Rails.respond_to?(:env) ? Rails.env : RAILS_ENV)
|
21
21
|
@choices.update settings
|
22
22
|
|
23
23
|
settings.each do |key, value|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: choices
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 21
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Mislav Marohni\xC4\x87"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-02-18 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
77
|
requirements: []
|
78
78
|
|
79
79
|
rubyforge_project:
|
80
|
-
rubygems_version: 1.
|
80
|
+
rubygems_version: 1.5.0
|
81
81
|
signing_key:
|
82
82
|
specification_version: 3
|
83
83
|
summary: Easy settings for your app
|