Permalink
Browse files

ActionController::RecordIdentifier.singular_class_name replaced by Ac…

…tiveModel::Naming.singular
  • Loading branch information...
1 parent c91b90b commit 08a8271951d369de9ce5ee0d47e2d6b10995c511 @lardawge lardawge committed with jasoncodes Aug 7, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/prototype_helper.rb
View
@@ -264,12 +264,12 @@ def remote_form_for(record_or_name_or_array, *args, &proc)
object_name = record_or_name_or_array
when Array
object = record_or_name_or_array.last
- object_name = ActionController::RecordIdentifier.singular_class_name(object)
+ object_name = ActiveModel::Naming.singular(object)
apply_form_for_options!(record_or_name_or_array, options)
args.unshift object
else
object = record_or_name_or_array
- object_name = ActionController::RecordIdentifier.singular_class_name(record_or_name_or_array)
+ object_name = ActiveModel::Naming.singular(record_or_name_or_array)
apply_form_for_options!(object, options)
args.unshift object
end

0 comments on commit 08a8271

Please sign in to comment.