Skip to content

Commit

Permalink
Expose internal block instance variable in Permission class
Browse files Browse the repository at this point in the history
  • Loading branch information
pokonski committed Jan 2, 2017
1 parent efc506a commit 5a037ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.1.2

- Expose internal `block` instance variable in Permission class

# 1.1.1

- Return detailed information about which permission is duplicate when raising DuplicatePermission exception
2 changes: 1 addition & 1 deletion lib/access-granted/permission.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module AccessGranted
class Permission
attr_reader :action, :subject, :granted, :conditions
attr_reader :action, :subject, :granted, :conditions, :block

def initialize(granted, action, subject, user = nil, conditions = {}, block = nil)
@action = action
Expand Down

0 comments on commit 5a037ce

Please sign in to comment.