Navigation Menu

Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
ActionController::RecordIdentifier.singular_class_name replaced by Ac…
Browse files Browse the repository at this point in the history
…tiveModel::Naming.singular
  • Loading branch information
lardawge authored and jasoncodes committed Nov 2, 2010
1 parent c91b90b commit 08a8271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/prototype_helper.rb
Expand Up @@ -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
Expand Down

0 comments on commit 08a8271

Please sign in to comment.