Skip to content

Commit

Permalink
[#713] This should fix bug 713 in lighthouse (flash not using view hi…
Browse files Browse the repository at this point in the history
…nts for model name)
  • Loading branch information
Iain Beeston authored and bryanlarsen committed May 19, 2010
1 parent e93dceb commit 1ce4abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hobo/lib/hobo/model_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ def flash_notice(message)


def create_response(new_action, options={}, &b)
flash_notice (ht( :"#{@this.class.name.pluralize.underscore}.messages.create.success", :default=>["The #{@this.class.name.titleize.downcase} was created successfully"])) if valid?
flash_notice (ht( :"#{@this.class.name.pluralize.underscore}.messages.create.success", :default=>["The #{@this.class.view_hints.model_name.downcase} was created successfully"])) if valid?

response_block(&b) or
if valid?
Expand Down Expand Up @@ -602,7 +602,7 @@ def hobo_update(*args, &b)

def update_response(in_place_edit_field=nil, options={}, &b)

flash_notice (ht(:"#{@this.class.name.pluralize.underscore}.messages.update.success", :default=>["Changes to the #{@this.class.name.titleize.downcase} were saved"])) if valid?
flash_notice (ht(:"#{@this.class.name.pluralize.underscore}.messages.update.success", :default=>["Changes to the #{@this.class.view_hints.model_name.downcase} were saved"])) if valid?

response_block(&b) or
if valid?
Expand Down

0 comments on commit 1ce4abe

Please sign in to comment.