Module: ActiveRecordShards::SqlComments
- Defined in:
- lib/active_record_shards/sql_comments.rb
Defined Under Namespace
Modules: Methods
Class Method Summary collapse
Class Method Details
.enable ⇒ Object
12 13 14 |
# File 'lib/active_record_shards/sql_comments.rb', line 12 def self.enable ActiveRecord::Base.on_shard(nil) { ActiveRecord::Base.connection.class.prepend(Methods) } end |