Sha256: 5b1c3fe6dfa0ec1f41cf92e3fe361258326f5655d507b95489b3cd0b0a4cb8d7
Contents?: true
Size: 598 Bytes
Versions: 7
Compression:
Stored size: 598 Bytes
Contents
# frozen_string_literal: true module Mobility module Plugins =begin @see {Mobility::Plugins::ActiveRecord::Query} =end module Query class << self def apply(attributes, option) if option include_query_module(attributes) end end private def include_query_module(attributes) if Loaded::ActiveRecord && attributes.model_class < ::ActiveRecord::Base require "mobility/plugins/active_record/query" ActiveRecord::Query.apply(attributes) end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems