Skip to content

Commit

Permalink
DSL optimization: allow array being passed to to
Browse files Browse the repository at this point in the history
  • Loading branch information
stffn committed Jun 15, 2010
1 parent 35ec81b commit 8e0fcc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/declarative_authorization/reader.rb
Expand Up @@ -308,7 +308,7 @@ def title (text)
# end
def to (*privs)
raise DSLError, "to only allowed in has_permission_on blocks" if @current_rule.nil?
@current_rule.append_privileges(privs)
@current_rule.append_privileges(privs.flatten)
end

# In a has_permission_on block, if_attribute specifies conditions
Expand Down

0 comments on commit 8e0fcc5

Please sign in to comment.