Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[#713] This should fix bug 713 in lighthouse (flash not using view hi…

…nts for model name)
  • Loading branch information...
commit 1ce4abec7d722a97d94066981d9955e971236b04 1 parent e93dceb
Iain Beeston authored bryanlarsen committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 hobo/lib/hobo/model_controller.rb
View
4 hobo/lib/hobo/model_controller.rb
@@ -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?
@@ -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?
Please sign in to comment.
Something went wrong with that request. Please try again.