governor 0.5.5 → 0.5.6
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.
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/app/controllers/governor/articles_controller.rb +2 -2
- data/governor.gemspec +1 -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.6
|
|
@@ -34,7 +34,7 @@ class Governor::ArticlesController < ApplicationController
|
|
|
34
34
|
# GET /articles/new
|
|
35
35
|
# GET /articles/new.xml
|
|
36
36
|
def new
|
|
37
|
-
set_resource model_class.new
|
|
37
|
+
set_resource model_class.unscoped.new
|
|
38
38
|
respond_with resource
|
|
39
39
|
end
|
|
40
40
|
|
|
@@ -46,7 +46,7 @@ class Governor::ArticlesController < ApplicationController
|
|
|
46
46
|
# POST /articles
|
|
47
47
|
# POST /articles.xml
|
|
48
48
|
def create
|
|
49
|
-
set_resource model_class.new(params[mapping.singular])
|
|
49
|
+
set_resource model_class.unscoped.new(params[mapping.singular])
|
|
50
50
|
resource.author = the_governor
|
|
51
51
|
if resource.save
|
|
52
52
|
flash[:notice] = t('governor.article_created', :resource_type => mapping.humanize)
|
data/governor.gemspec
CHANGED
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: 7
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 0.5.
|
|
9
|
+
- 6
|
|
10
|
+
version: 0.5.6
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Liam Morley
|