singlettings 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/singlettings/rails.rb +11 -1
- data/lib/singlettings/version.rb +1 -1
- data/myapp/config/initializers/test_yetting.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f347cd873ba6481b79dfb39bfae7f20b22561ce7
|
4
|
+
data.tar.gz: 004d5fd453fd073f0d7179bdf96d2af9fbc96b44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e92bbe8c92a8ea401384eb9639aec82db313d012d70a4f6905aecf14db0384b55cb9ab33b6ea81b07a6da2e8fa11021308765602659f8476ecfe5209a8839600
|
7
|
+
data.tar.gz: 2a180ca7aa89665708474c3c55a2e399c483f677ed5068ee27e816e81d54d7f360d91a4352c21be8c4a0948c812d2527dee6b76f0a9f6aaad8701c1d26b40ae0
|
data/lib/singlettings/rails.rb
CHANGED
@@ -9,7 +9,17 @@ module Singlettings
|
|
9
9
|
end
|
10
10
|
|
11
11
|
class Rails < ::Rails::Engine
|
12
|
-
|
12
|
+
# The priorities of ActiveSupport hooks are shown as below:
|
13
|
+
# => before_configuration
|
14
|
+
# => before_initialize
|
15
|
+
# => before_eager_load
|
16
|
+
# => action_controller
|
17
|
+
# => action_view
|
18
|
+
# => active_record
|
19
|
+
# => after_initialize
|
20
|
+
# Since Singlettings is for configuration,
|
21
|
+
# it should be loaded before configuration.
|
22
|
+
config.before_configuration do
|
13
23
|
Singlettings.hook_rails!
|
14
24
|
end
|
15
25
|
end if defined?(::Rails)
|
data/lib/singlettings/version.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
SETTINGS = Yetting
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: singlettings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jingkai He
|
@@ -100,6 +100,7 @@ files:
|
|
100
100
|
- myapp/config/initializers/mime_types.rb
|
101
101
|
- myapp/config/initializers/secret_token.rb
|
102
102
|
- myapp/config/initializers/session_store.rb
|
103
|
+
- myapp/config/initializers/test_yetting.rb
|
103
104
|
- myapp/config/initializers/wrap_parameters.rb
|
104
105
|
- myapp/config/locales/en.yml
|
105
106
|
- myapp/config/routes.rb
|