Project

General

Profile

« Previous | Next » 

Revision 19bd108a

Added by Paul Kelly about 14 years ago

  • ID 19bd108a00fe760cfaac4b6bc7ef0f496ee29c1d

Fixes #240 - Clone operation highlights changes correctly

The clone operation no longer flags edits as errors. This looks better.

View differences:

config/initializers/foreman.rb
end
end
end
module ActionView::Helpers::ActiveRecordHelper
def error_messages_for_with_customisation(*params)
if flash[:error_customisation]
if params[-1].is_a? Hash
params[-1].update flash[:error_customisation]
else
params << flash[:error_customisation]
end
end
error_messages_for_without_customisation(*params)
end
alias_method_chain :error_messages_for, :customisation
end

Also available in: Unified diff