adding a couple things to the changelog

This commit is contained in:
Ryan Bates
2010-10-05 12:00:50 -07:00
parent 18b45d5cfc
commit b0cec5251c
5 changed files with 10 additions and 6 deletions

View File

@@ -224,7 +224,7 @@ module CanCan
def has_block?(action, subject)
relevant_can_definitions(action, subject).any?(&:only_block?)
end
def has_raw_sql?(action, subject)
relevant_can_definitions(action, subject).any?(&:only_raw_sql?)
end
@@ -271,7 +271,7 @@ module CanCan
can_definition.relevant? action, subject
end
end
def relevant_can_definitions_for_match(action, subject)
relevant_can_definitions(action, subject).each do |can_definition|
if can_definition.only_raw_sql?