cancan_strong_parameters 0.2.3 → 0.2.4

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/README.md CHANGED
@@ -25,7 +25,7 @@ Or install it yourself as:
25
25
  ## Usage
26
26
 
27
27
  1. Add `gem "cancan_strong_parameters"` to your Gemfile
28
- 2. Wherever you use `load_and_authorize_resource`, also permit your parameters:
28
+ 2. In your controllers, wherever you use `load_and_authorize_resource` (and similar CanCan methods), also permit your parameters:
29
29
 
30
30
  ```ruby
31
31
  class PostsController < ApplicationController
@@ -1,3 +1,5 @@
1
+ require 'strong_parameters'
2
+
1
3
  class ActionController::Base
2
4
  include CancanStrongParameters::Controller
3
5
  end
@@ -1,3 +1,3 @@
1
1
  module CancanStrongParameters
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cancan_strong_parameters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
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: 2012-12-01 00:00:00.000000000 Z
12
+ date: 2013-02-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cancan