Sha256: 01628c2a1cbe2d2ede2ce623e30d50ee9ab7d111f8e87d7996fb4a633d94cb99

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 Bytes

Contents

module Parelation::Helpers

  # Shorthand method used in ActionController controllers for converting
  # and applying parameters to ActionController::Relation criteria chains.
  #
  # @param object [ActiveRecord::Relation]
  # @return [ActiveRecord::Relation]
  #
  def parelate(object)
    Parelation::Applier.new(object, params).apply
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
parelation-1.0.0 lib/parelation/helpers.rb
parelation-0.2.0 lib/parelation/helpers.rb
parelation-0.1.0 lib/parelation/helpers.rb
parelation-0.0.1 lib/parelation/helpers.rb