Class: ActiveRecord::ConnectionAdapters::AbstractAdapter
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::AbstractAdapter
- Defined in:
- lib/activerecord/tablelocks/activerecord.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.inherited(subclass) ⇒ Object
39 40 41 42 43 44 |
# File 'lib/activerecord/tablelocks/activerecord.rb', line 39 def self.inherited(subclass) case subclass.name when "ActiveRecord::ConnectionAdapters::PostgreSQLAdapter" require 'activerecord/tablelocks/activerecord/postgres' end end |
Instance Method Details
#lock_table(quoted_table_name) ⇒ Object
45 46 47 |
# File 'lib/activerecord/tablelocks/activerecord.rb', line 45 def lock_table(quoted_table_name) logger.warn "WARNING: Locking is not supported for your database!" end |
#lock_tables(quoted_table_names) ⇒ Object
48 49 50 |
# File 'lib/activerecord/tablelocks/activerecord.rb', line 48 def lock_tables(quoted_table_names) logger.warn "WARNING: Locking is not supported for your database!" end |