Permalink
Commits on Jun 17, 2018
  1. Merge pull request #529 from varvet/fix/pass-array-last-to-policy-and…

    Linuus committed Jun 17, 2018
    …-scope
    
    Pass last element in array to policy and scope and fix param_key
  2. Update CHANGELOG

    Linuus committed Jun 17, 2018
  3. Fix `param_key` when passed an array for namespacing

    Linuus committed Jun 17, 2018
  4. Update CHANGELOG

    Linuus committed Jun 17, 2018
  5. Only pass last element of array to policy scope

    Linuus committed Jun 17, 2018
  6. Pass the last thing in array to policy

    Linuus committed Jun 17, 2018
    When passing an array to Pundit to specify namespacing
    we should only pass the last element of the array to the
    policy.
Commits on Jun 16, 2018
  1. Update CHANGELOG

    Linuus committed Jun 16, 2018
  2. Merge pull request #525 from skillstream/allow-nil-policy-rebased

    Linuus committed Jun 16, 2018
    Allow specification of a NilClassPolicy
Commits on Jun 7, 2018
  1. Allow specification of a NilClassPolicy

    bendilley committed Jun 7, 2018
    This saves having to check whether objects are nil before checking their
    policy.
    
    This contradicts the intent of varvet/pundit#251 and could represent a
    breaking change for some.
Commits on Jun 6, 2018
  1. Update CHANGELOG

    Linuus committed Jun 6, 2018
  2. Lint on latest ruby only

    Linuus committed Jun 6, 2018
  3. Merge pull request #491 from brendanthomas1/add-policy-finder-spec

    Linuus committed Jun 6, 2018
    Add PolicyFinder spec and refactor to avoid rescues
Commits on Jun 5, 2018
  1. Add PolicyFinder spec

    brendanthomas1 committed Oct 28, 2017
Commits on May 31, 2018
  1. Merge pull request #488 from iangreenleaf/more-scopes-in-scopes

    Linuus committed May 31, 2018
    Use `.all` in generated policy scopes
  2. Use `.all` in the scope generators

    iangreenleaf committed Oct 11, 2017
    This matches the examples in the README, and is the correct behavior for
    anyone using ActiveRecord. Passing the `scope` object directly out can
    cause weird behavior when used like `policy_scope(MyKlass)`.
  3. More exact checks in specs with Comment scopes

    iangreenleaf committed Oct 11, 2017
    The Comment scope in the specs now returns an object wrapping what was
    originally passed in. This makes more sense than passing the object all
    the way through, and lets the spec check that the correct method was run.
  4. Merge pull request #475 from ryanhertz/fix-arrays

    Linuus committed May 31, 2018
    fix PolicyFinder when given an array with policy class override
Commits on May 25, 2018
  1. Merge pull request #516 from yhirano55/improve-policy-generator

    Linuus committed May 25, 2018
    Improve policy generator
  2. Add jruby 9.2 to travis

    Linuus committed May 25, 2018
Commits on May 17, 2018
  1. Update CHANGELOG

    Linuus committed May 17, 2018
  2. Merge pull request #462 from JIAZHEN/master

    Linuus committed May 17, 2018
    Error message when constructor called wrongly
  3. Remove duplicate assertions

    Linuus committed May 17, 2018
  4. Merge pull request #419 from Ross-Hunter/use-action-name-not-params

    Linuus committed May 17, 2018
    Use controller’s `action_name` attr instead of params[:action]
  5. Use controller’s `action_name` attr instead of params[:action]

    Ross-Hunter committed Sep 27, 2016
    This is the recommended way to access a controller’s current action
  6. Remove unneeded rubocop file

    Linuus committed May 17, 2018
  7. Update README

    Linuus committed May 17, 2018
  8. Update CHANGELOG

    Linuus committed May 17, 2018
  9. Merge pull request #502 from pablocrivella/refactor-permitted-attribu…

    Linuus committed May 17, 2018
    …tes-method
    
    Refactor permitted attributes method
Commits on May 16, 2018
Commits on May 15, 2018
  1. chmod -x template/policy.rb

    yhirano55 committed Jul 16, 2017