governor 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/governor.gemspec +1 -1
- data/lib/governor/controllers/helpers.rb +2 -1
- data/spec/rails_app/Gemfile.lock +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.7
|
data/governor.gemspec
CHANGED
@@ -40,7 +40,8 @@ module Governor
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def init_resource
|
43
|
-
|
43
|
+
model_scope = the_governor.present? ? model_class.unscoped : model_class
|
44
|
+
set_resource model_scope.find(params["#{mapping.singular}_id"] || params[:id])
|
44
45
|
end
|
45
46
|
|
46
47
|
def the_governor
|
data/spec/rails_app/Gemfile.lock
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: governor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 7
|
10
|
+
version: 0.5.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Liam Morley
|