Sha256: 321693e4a7582ea71eda62a5bc6ffdd0cec77b6158bd0d4e768f82fc690176f8

Contents?: true

Size: 321 Bytes

Versions: 3

Compression:

Stored size: 321 Bytes

Contents

module PgSearch
  module Compatibility
    module ActiveRecord3
      def pg_search_rank
        read_attribute(:pg_search_rank).to_f
      end
    end

    def self.build_quoted(string)
      if defined?(Arel::Nodes::Quoted)
        Arel::Nodes.build_quoted(string)
      else
        string
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pg_search-0.7.9 lib/pg_search/compatibility.rb
pg_search-0.7.8 lib/pg_search/compatibility.rb
pg_search-0.7.7 lib/pg_search/compatibility.rb