Sha256: 8a3b214bff9e83b548ef378ccd724720a2103d3843cb8810dc71303e5bd312cd

Contents?: true

Size: 706 Bytes

Versions: 2

Compression:

Stored size: 706 Bytes

Contents

module AdaptiveAlias
  module Hooks
    module Relation
      def pluck(*)
        AdaptiveAlias.rescue_statement_invalid(relation: self){ super }
      end

      def update_all(*)
        AdaptiveAlias.rescue_statement_invalid(relation: self){ super }
      end

      def exists?(*)
        AdaptiveAlias.rescue_statement_invalid(relation: self){ super }
      end

      def select_all(*)
        AdaptiveAlias.rescue_statement_invalid(relation: self){ super }
      end

      def exec_queries(*)
        AdaptiveAlias.rescue_statement_invalid(relation: self){ super }
      end
    end
  end
end

class ActiveRecord::Relation
  prepend AdaptiveAlias::Hooks::Relation
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adaptive_alias-1.3.0 lib/adaptive_alias/hooks/relation.rb
adaptive_alias-1.2.1 lib/adaptive_alias/hooks/relation.rb