Skip to content
Browse files

work around on an upstream bug

  • Loading branch information...
1 parent c925a73 commit 0738f6adc862b8bf4dee3d7cb4e06b290c64f944 @mkristian committed
View
1 lib/generators/rails/scaffold_controller/scaffold_controller/singleton_controller.rb
@@ -65,6 +65,7 @@ def update
<% end -%>
respond_to do |format|
+<% orm_class # to set inner state - upstream bug -%>
if @<%= orm_instance.update_attributes("params[:#{singular_table_name}]") %>
format.html { redirect_to(<%= singular_table_name %>_path, :notice => '<%= human_name %> was successfully updated.') }
format.xml { render :xml => @<%= singular_table_name %>.to_xml(<%= class_name %>.single_options) }

0 comments on commit 0738f6a

Please sign in to comment.
Something went wrong with that request. Please try again.