Changeset 26
- Timestamp:
- 11/19/2006 07:26:22 PM (2 years ago)
- Files:
-
- trunk/auto-admin/lib/auto_admin_controller.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/auto-admin/lib/auto_admin_controller.rb
r23 r26 179 179 o = child_id ? child_class.find( child_id ) : children.build 180 180 unless o.update_attributes child_info 181 flash[:warning] = "Failed to #{o.new_record? ? 'add' : 'change'} the #{o.class.name.titleize.downcase} \"#{o.to_label}\" (#{set.label || 'Child list'}). " 181 set_name = 'Child list' 182 set_name = set.name if set.respond_to?(:name) && !set.name.blank? 183 flash[:warning] = "Failed to #{o.new_record? ? 'add' : 'change'} the #{o.class.name.titleize.downcase} \"#{o.to_label}\" (#{set_name}). " 182 184 render :action => 'edit' and return 183 185 end
