diff options
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract_adapter.rb')
-rwxr-xr-x | activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index e223baadbc..8eb51218f2 100755 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -66,11 +66,16 @@ module ActiveRecord # QUOTING ================================================== - # Override to return the quoted table name if the database needs it + # Override to return the quoted column name. Defaults to no quoting. def quote_table_name(name) name end + # Override to return the quoted table name. Defaults to column quoting. + def quote_table_name(name) + quote_column_name(name) + end + # REFERENTIAL INTEGRITY ==================================== # Override to turn off referential integrity while executing +&block+ |