Permalink
Commits on Nov 14, 2016
  1. Merge pull request #242 from astorije/patch-1

    Ensure arrays of permitted values are supported
    rafaelfranca committed on GitHub Nov 14, 2016
Commits on Nov 13, 2016
  1. Merge pull request #243 from astorije/patch-2

    Use SVG badges on the README
    amatsuda committed on GitHub Nov 13, 2016
Commits on Nov 12, 2016
  1. Ignore bundler lock files

    [ci skip]
    amatsuda committed Nov 12, 2016
  2. Use SVG badges on the README

    astorije committed on GitHub Nov 12, 2016
  3. Ensure arrays of permitted values are supported

    This replicates behavior encountered in Rails 4.0 and up: https://github.com/rails/rails/blob/4-0-stable/actionpack/lib/action_controller/metal/strong_parameters.rb#L266
    
    Without this change, the following snippets fails with arrays, which is permitted in Rails 4:
    
    ```
    > p = ActionController::Parameters.new({ user: { name: "foo", email: "foo@bar.com" } })
    => {"user"=>{"name"=>"foo", "email"=>"foo@bar.com"}}
    > p.require(:user).permit(:name, :email)
    => {"name"=>"foo", "email"=>"foo@bar.com"}
    > p.require(:user).permit([:name, :email])
    [2016-11-10 17:38:08] DEBUG ActiveSupport::Configurable::Configuration {}: Unpermitted parameters: name, email
    => {}
    ```
    
    Using with an array now works the same way than spread arguments and allows for easier upgrade from Rails 3 to 4.
    astorije committed Nov 10, 2016
Commits on Jan 1, 2016
  1. Merge pull request #234 from jeroenvisser101/patch-1

    Update copyright year [ci-skip]
    guilleiguaran committed Jan 1, 2016
  2. Update copyright year

    Happy new year!
    jeroenvisser101 committed Jan 1, 2016
Commits on Jan 20, 2015
  1. fixes markup

    fxn committed Jan 20, 2015
Commits on Nov 3, 2014
  1. Merge pull request #210 from lowensk/master

    Fix ParameterMissing typo in README
    rafaelfranca committed Nov 3, 2014
Commits on Nov 1, 2014
Commits on Jul 31, 2014
  1. Merge pull request #204 from ursafoot/master

    Grammar typo
    rafaelfranca committed Jul 31, 2014
  2. Grammar typo

    ursafoot committed Jul 31, 2014
Commits on May 6, 2014
Commits on Apr 28, 2014
  1. Merge pull request #199 from kreeger/use-active-support-on-load

    Using ActiveSupport#on_load instead of send :include to boot.
    jeremy committed Apr 28, 2014
Commits on Apr 26, 2014
Commits on Feb 28, 2014
  1. Merge pull request #191 from arthurnn/fix_test_18_1

    more 1.8 fixes
    guilleiguaran committed Feb 28, 2014
  2. more 1.8 fixes

    arthurnn committed Feb 28, 2014
  3. Merge pull request #190 from arthurnn/fix_test_18

    Fix 1.8 syntax on test
    guilleiguaran committed Feb 28, 2014
  4. Fix 1.8 syntax on test

    arthurnn committed Feb 28, 2014
Commits on Feb 4, 2014
  1. Merge pull request #187 from gdi2290/patch-1

    update copyright year to range
    rafaelfranca committed Feb 4, 2014
Commits on Jan 20, 2014
  1. ready to publish 0.2.3

    fxn committed Jan 20, 2014
  2. depend on Active Support

    While AS is a dependency via other gems, strong parameters uses it explicitly.
    fxn committed Jan 20, 2014
Commits on Dec 23, 2013
  1. don't mutate hash with fetch

    fxn committed Dec 23, 2013
Commits on Dec 21, 2013
  1. bumps version for release

    fxn committed Dec 21, 2013
Commits on Dec 11, 2013
  1. Merge pull request #183 from tiegz/tiny_test_fix

    Add two missing asserts in NestedParametersTest
    carlosantoniodasilva committed Dec 11, 2013