Sha256: 99a2c194d93d5f7ddb47c77480d56b3ffdf01b4687f222ac5f51169814a78d59

Contents?: true

Size: 693 Bytes

Versions: 2

Compression:

Stored size: 693 Bytes

Contents

module Octopus
  module Rails3
    module Persistence
      def update_attribute(*args)
        run_on_shard { super }
      end

      def update_attributes(*args)
        run_on_shard { super }
      end

      def update_attributes!(*args)
        run_on_shard { super }
      end

      def reload(*args)
        run_on_shard { super }
      end

      def delete
        run_on_shard { super }
      end

      def destroy
        run_on_shard { super }
      end

      def touch(name=nil)
        run_on_shard { super }
      end

      def update_column(*args)
        run_on_shard { super }
      end
    end
  end
end

ActiveRecord::Base.send(:include, Octopus::Rails3::Persistence)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ar-octopus-0.8.2 lib/octopus/persistence.rb
ar-octopus-0.8.1 lib/octopus/rails3/persistence.rb