diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-05-21 01:30:00 -0700 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-05-21 01:30:00 -0700 |
commit | d62a39a22b7ad56efa79089177aa06fda0d41f86 (patch) | |
tree | 1323af2dd5870c4d17863974550b6f9efca887e7 /activerecord/lib/active_record/base.rb | |
parent | 7288682be4f9384ad4083415342d8af876f77db8 (diff) | |
parent | e0e8918003eab33c5446f17227c9035a6df75e5f (diff) | |
download | rails-d62a39a22b7ad56efa79089177aa06fda0d41f86.tar.gz rails-d62a39a22b7ad56efa79089177aa06fda0d41f86.tar.bz2 rails-d62a39a22b7ad56efa79089177aa06fda0d41f86.zip |
Merge pull request #1162 from guilleiguaran/singularize_individual_table_name
Singularize individual table name
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 30e2d1a82c..92e525a361 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -393,8 +393,8 @@ module ActiveRecord #:nodoc: # Indicates whether table names should be the pluralized versions of the corresponding class names. # If true, the default table name for a Product class will be +products+. If false, it would just be +product+. # See table_name for the full rules on table/class naming. This is true, by default. - cattr_accessor :pluralize_table_names, :instance_writer => false - @@pluralize_table_names = true + class_attribute :pluralize_table_names, :instance_writer => false + self.pluralize_table_names = true ## # :singleton-method: |