resource_controller_extensions 0.1.0 → 0.2.0

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
@@ -18,10 +18,10 @@ module ResourceControllerExtensions
18
18
  edit.wants.json { render :json => object}
19
19
 
20
20
  create.wants.json { render :json => object, :status => :created, :location => object_url }
21
- create.failure.wants.json { render :json => object.errors, :status => :unprocessable_entity }
21
+ create.failure.wants.json { render :json => {:errors => object.errors}, :status => :unprocessable_entity }
22
22
  destroy.wants.json { head :ok }
23
23
  update.wants.json { head :ok }
24
- update.failure.wants.json { render :json => object.errors, :status => :unprocessable_entity }
24
+ update.failure.wants.json { render :json => {:errors => object.errors}, :status => :unprocessable_entity }
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resource_controller_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 0
9
+ version: 0.2.0
5
10
  platform: ruby
6
11
  authors:
7
12
  - Blake Watters
@@ -9,7 +14,7 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-26 00:00:00 -05:00
17
+ date: 2010-03-02 00:00:00 -05:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
@@ -50,18 +55,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
50
55
  requirements:
51
56
  - - ">="
52
57
  - !ruby/object:Gem::Version
58
+ segments:
59
+ - 0
53
60
  version: "0"
54
- version:
55
61
  required_rubygems_version: !ruby/object:Gem::Requirement
56
62
  requirements:
57
63
  - - ">="
58
64
  - !ruby/object:Gem::Version
65
+ segments:
66
+ - 0
59
67
  version: "0"
60
- version:
61
68
  requirements: []
62
69
 
63
70
  rubyforge_project:
64
- rubygems_version: 1.3.5
71
+ rubygems_version: 1.3.6
65
72
  signing_key:
66
73
  specification_version: 3
67
74
  summary: Provides sensible defaults action for XML, JSON, and FBML to Resource Controller.