Sha256: a032ae90655d85123626a570238a3eedf02aea43c5cc8b9c2ba7a7e2ef10574c

Contents?: true

Size: 472 Bytes

Versions: 6

Compression:

Stored size: 472 Bytes

Contents

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

      def select_all(*)
        AdaptiveAlias.rescue_statement_invalid(self, nil){ super }
      end

      def exec_queries(*)
        AdaptiveAlias.rescue_statement_invalid(self, nil){ super }
      end
    end
  end
end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
adaptive_alias-1.0.0 lib/adaptive_alias/hooks/relation.rb
adaptive_alias-0.2.4 lib/adaptive_alias/hooks/relation.rb
adaptive_alias-0.2.3 lib/adaptive_alias/hooks/relation.rb
adaptive_alias-0.2.2 lib/adaptive_alias/hooks/relation.rb
adaptive_alias-0.2.1 lib/adaptive_alias/hooks/relation.rb
adaptive_alias-0.2.0 lib/adaptive_alias/hooks/relation.rb