Skip to content

Commit

Permalink
Rails 5 : Syntax fix recursive loop where prepend-ed modules exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mherold committed Jun 28, 2017
1 parent e767750 commit b437025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/declarative_authorization/in_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def decl_auth_context
protected
def filter_access_permissions # :nodoc:
unless filter_access_permissions?
ancestors[1..-1].reverse.each do |mod|
(ancestors - [self] ).reverse.each do |mod|
mod.filter_access_permissions if mod.respond_to?(:filter_access_permissions, true)
end
end
Expand Down

0 comments on commit b437025

Please sign in to comment.