Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: c5e640df10
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.423 kB
#patch to vendor/rails/actionpack/lib/action_controller/flash.rb
ActionController::Flash::FlashHash.class_eval do
def brackets_equal_with_sexy(k, v)
v = Array(v)
options = v.extract_options!
brackets_equal_without_sexy(k, v[0])
brackets_equal_without_sexy((k.to_s + '_options').to_sym, options)
end
alias_method :brackets_equal_without_sexy, :[]=
alias_method :[]=, :brackets_equal_with_sexy
end
Jump to Line
Something went wrong with that request. Please try again.