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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ./
3
3
  specs:
4
- governor (0.5.4)
4
+ governor (0.5.6)
5
5
  rails (>= 3.0.5)
6
6
 
7
7
  GEM
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.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)
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{governor}
8
- s.version = "0.5.5"
8
+ s.version = "0.5.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Liam Morley"]
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- governor (0.5.4)
4
+ governor (0.5.6)
5
5
  rails (>= 3.0.5)
6
6
 
7
7
  GEM
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: 1
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 5
10
- version: 0.5.5
9
+ - 6
10
+ version: 0.5.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Liam Morley