aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorDavid Trasbo <me@dtrasbo.com>2010-06-29 16:54:05 +0200
committerJosé Valim <jose.valim@gmail.com>2010-06-29 17:54:51 +0200
commit735a4db6854e73e871e6b01ec003f0670cc5ee14 (patch)
tree4acddef837a2dd06e8ede1efcad11b44b4c3f4a2 /activerecord/lib/active_record/base.rb
parent417125e7955e56159524992b0e95e92d2f7bf0cb (diff)
downloadrails-735a4db6854e73e871e6b01ec003f0670cc5ee14.tar.gz
rails-735a4db6854e73e871e6b01ec003f0670cc5ee14.tar.bz2
rails-735a4db6854e73e871e6b01ec003f0670cc5ee14.zip
Remove ActiveRecord::Base#class_name [#379 state:committed]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rw-r--r--activerecord/lib/active_record/base.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index b44158ec75..c8795e4496 100644
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -720,14 +720,6 @@ module ActiveRecord #:nodoc:
end
alias :sequence_name= :set_sequence_name
- # Turns the +table_name+ back into a class name following the reverse rules of +table_name+.
- def class_name(table_name = table_name) # :nodoc:
- # remove any prefix and/or suffix from the table name
- class_name = table_name[table_name_prefix.length..-(table_name_suffix.length + 1)].camelize
- class_name = class_name.singularize if pluralize_table_names
- class_name
- end
-
# Indicates whether the table associated with this class exists
def table_exists?
connection.table_exists?(table_name)