Sha256: 759a7014d8ee1af792ae37b58cba01dfdb13d3bba49fa74d89c73de4651537c9

Contents?: true

Size: 264 Bytes

Versions: 4

Compression:

Stored size: 264 Bytes

Contents

require 'active_support/core_ext/module/delegation'
class ExposeQuery::BaseQuery
  attr_reader :controller

  delegate :params, to: :controller

  def initialize(controller)
    @controller = controller
  end

  def apply(source_scope)
    source_scope
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
expose_query-0.1.3 lib/expose_query/base_query.rb
expose_query-0.0.3 lib/expose_query/base_query.rb
expose_query-0.0.2 lib/expose_query/base_query.rb
expose_query-0.0.1 lib/expose_query/base_query.rb