Sha256: 2b36b29c6780cacb46888004c1205d177811c650fe9dc2dfcf4ad474af9faf6d

Contents?: true

Size: 521 Bytes

Versions: 1

Compression:

Stored size: 521 Bytes

Contents

require "active_record/scope_names"
require "active_hash_relation/version"
require "active_hash_relation/column_filters"
require "active_hash_relation/scope_filters"
require "active_hash_relation/association_filters"
require "active_hash_relation/filter_applier"

module ActiveHashRelation
  def apply_filters(resource, params, include_associations: false, model: nil)
    FilterApplier.new(
      resource,
      params,
      include_associations: include_associations,
      model: model
    ).apply_filters
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_hash_relation-0.0.1 lib/active_hash_relation.rb