simple_resource 0.4.0 → 0.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ 0.5.0 (January 17, 2013)
4
+
5
+ * SimpleResource::UserController for resources that belongs to User
6
+
3
7
  0.4.0 (January 15, 2013)
4
8
 
5
9
  * Kaminari support
@@ -0,0 +1,15 @@
1
+ module SimpleResource
2
+ class UserController < SimpleResource::BaseController
3
+ if defined?(Devise)
4
+ before_filter :authenticate_user!
5
+ end
6
+
7
+ protected
8
+
9
+ def begin_of_association_chain
10
+ if defined?(Devise)
11
+ current_user
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  module SimpleResource
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-15 00:00:00.000000000 Z
12
+ date: 2013-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -237,6 +237,7 @@ files:
237
237
  - README.md
238
238
  - Rakefile
239
239
  - app/controllers/simple_resource/base_controller.rb
240
+ - app/controllers/simple_resource/user_controller.rb
240
241
  - app/helpers/simple_resource/base_helper.rb
241
242
  - app/views/simple_resource/base/_actions.html.erb
242
243
  - app/views/simple_resource/base/_collection.html.erb
@@ -317,7 +318,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
317
318
  version: '0'
318
319
  segments:
319
320
  - 0
320
- hash: 11179807578126379
321
+ hash: -1735874999649886258
321
322
  required_rubygems_version: !ruby/object:Gem::Requirement
322
323
  none: false
323
324
  requirements:
@@ -326,7 +327,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
326
327
  version: '0'
327
328
  segments:
328
329
  - 0
329
- hash: 11179807578126379
330
+ hash: -1735874999649886258
330
331
  requirements: []
331
332
  rubyforge_project:
332
333
  rubygems_version: 1.8.24