Sha256: 31f60bc9c6268f895166009ff7f8924802962168182ac005a248df7c76bded79

Contents?: true

Size: 556 Bytes

Versions: 1

Compression:

Stored size: 556 Bytes

Contents

begin
  require_dependency Rails.root.join('plugins', 'easyproject', 'easy_plugins', 'easy_extensions', 'app', 'models', 'easy_queries', 'easy_query')
rescue LoadError
  class EasyQuery < Query


    def from_params(params)
      build_from_params(params)
    end

    def entity; end

    def entity_scope
      if entity.respond_to?(:visible)
        entity.visible
      else
        entity
      end
    end

    def entities_scope
      entity_scope.where(statement)
    end

    def entities(options={})
      entities_scope.to_a
    end


  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redmine_extensions-0.0.12 app/models/easy_query.rb.orig