Skip to content

Commit

Permalink
Merge pull request #51 from yellow-beard/fix-permit-matcher-message
Browse files Browse the repository at this point in the history
Fix permit custom matcher message
  • Loading branch information
yellow-beard committed Jul 17, 2018
2 parents 031fdae + f2375a9 commit 7cac411
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### 2.1.4 (2018-07-12)

* [#51](https://github.com/square/rails-auth/pull/51)
Fix bug in `permit` custom matcher so that a description is rendered.
([@yellow-beard])

### 2.1.3 (2017-08-04)

* [#44](https://github.com/square/rails-auth/pull/44)
Expand Down
2 changes: 1 addition & 1 deletion lib/rails/auth/credentials.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Credentials
extend Forwardable
include Enumerable

def_delegators :@credentials, :fetch, :empty?, :key?, :each, :to_hash
def_delegators :@credentials, :fetch, :empty?, :key?, :each, :to_hash, :values

def self.from_rack_env(env)
new(env.fetch(Rails::Auth::Env::CREDENTIALS_ENV_KEY, {}))
Expand Down
2 changes: 1 addition & 1 deletion lib/rails/auth/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
module Rails
# Pluggable authentication and authorization for Rack/Rails
module Auth
VERSION = "2.1.3".freeze
VERSION = "2.1.4".freeze
end
end

0 comments on commit 7cac411

Please sign in to comment.