Skip to content

Commit

Permalink
Merge pull request rails#5365 from avakhov/ac-layouts-excpetion-msgs
Browse files Browse the repository at this point in the history
Fix exceptions messages in AC layouts
  • Loading branch information
drogus committed Mar 16, 2012
2 parents fa7a3aa + c16f4f1 commit fc6b961
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/abstract_controller/layouts.rb
Expand Up @@ -311,7 +311,7 @@ def _write_layout_method
when false
nil
when true
raise ArgumentError, "Layouts must be specified as a String, Symbol, false, or nil"
raise ArgumentError, "Layouts must be specified as a String, Symbol, Proc, false, or nil"
when nil
name_clause
end
Expand Down Expand Up @@ -371,7 +371,7 @@ def _layout_for_option(name)
when false, nil then nil
else
raise ArgumentError,
"String, true, or false, expected for `layout'; you passed #{name.inspect}"
"String, Proc, :default, true, or false, expected for `layout'; you passed #{name.inspect}"
end
end

Expand Down

0 comments on commit fc6b961

Please sign in to comment.