aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/record_identifier.rb
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-08-07 00:52:13 -0300
committerYehuda Katz <wycats@gmail.com>2009-08-07 00:52:13 -0300
commit70a440aa277676078e3b8baafe1101d1287e114f (patch)
tree6a0b071cbedde4f4edc481272264d014637e7e90 /actionpack/lib/action_controller/record_identifier.rb
parent4ac9d391d337d5a05a7aa93849405e21dd4bbf01 (diff)
downloadrails-70a440aa277676078e3b8baafe1101d1287e114f.tar.gz
rails-70a440aa277676078e3b8baafe1101d1287e114f.tar.bz2
rails-70a440aa277676078e3b8baafe1101d1287e114f.zip
Clean up render @object a bit more.
Diffstat (limited to 'actionpack/lib/action_controller/record_identifier.rb')
-rw-r--r--actionpack/lib/action_controller/record_identifier.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/actionpack/lib/action_controller/record_identifier.rb b/actionpack/lib/action_controller/record_identifier.rb
index b4408e4e1d..1165c3b7c5 100644
--- a/actionpack/lib/action_controller/record_identifier.rb
+++ b/actionpack/lib/action_controller/record_identifier.rb
@@ -36,21 +36,6 @@ module ActionController
JOIN = '_'.freeze
NEW = 'new'.freeze
- # Returns plural/singular for a record or class. Example:
- #
- # partial_path(post) # => "posts/post"
- # partial_path(Person) # => "people/person"
- # partial_path(Person, "admin/games") # => "admin/people/person"
- def partial_path(record_or_class, controller_path = nil)
- name = model_name_from_record_or_class(record_or_class)
-
- if controller_path && controller_path.include?("/")
- "#{File.dirname(controller_path)}/#{name.partial_path}"
- else
- name.partial_path
- end
- end
-
# The DOM class convention is to use the singular form of an object or class. Examples:
#
# dom_class(post) # => "post"