Sha256: 8278f88bcea8b46b325bb46e4d701a0ac8530b4451db6bb8cebadab7a0ff9c6e

Contents?: true

Size: 370 Bytes

Versions: 12

Compression:

Stored size: 370 Bytes

Contents

module DbCharmer
  module AssociationProxy
    module InstanceMethods
      def on_db(con, &block)
        @reflection.klass.on_db(con, self, &block)
      end

      def on_slave(con = nil, &block)
        @reflection.klass.on_slave(con, self, &block)
      end

      def on_master(&block)
        @reflection.klass.on_master(self, &block)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
glebpom-db-charmer-1.1.5 lib/db_charmer/association_proxy.rb
glebpom-db-charmer-1.3.0 lib/db_charmer/association_proxy.rb
kovyrin-db-charmer-1.1.0 lib/db_charmer/association_proxy.rb
kovyrin-db-charmer-1.1.2 lib/db_charmer/association_proxy.rb
kovyrin-db-charmer-1.1.3 lib/db_charmer/association_proxy.rb
kovyrin-db-charmer-1.2.0 lib/db_charmer/association_proxy.rb
db-charmer-1.3.3 lib/db_charmer/association_proxy.rb
db-charmer-1.3.2 lib/db_charmer/association_proxy.rb
db-charmer-1.3.1 lib/db_charmer/association_proxy.rb
glebpom-db-charmer-1.4.3 lib/db_charmer/association_proxy.rb
glebpom-db-charmer-1.4.2 lib/db_charmer/association_proxy.rb
glebpom-db-charmer-1.4.0 lib/db_charmer/association_proxy.rb