Sha256: 7af751d7401a827fe58b1a08acd01eab3c8ce475d6b645ffae5427e2b335bd10

Contents?: true

Size: 645 Bytes

Versions: 6

Compression:

Stored size: 645 Bytes

Contents

require 'active_scaffold_config_mock'

class ClassWithFinder
  include ActiveScaffoldConfigMock
  include ActiveScaffold::Finder

  def active_scaffold_config
    self.class.active_scaffold_config
  end

  def conditions_for_collection; end

  def conditions_from_params; end

  def conditions_from_constraints; end

  def active_scaffold_embedded_params
    {}
  end

  def params_hash(v)
    v
  end

  def joins_for_collection; end

  def custom_finder_options
    {}
  end

  def beginning_of_chain
    active_scaffold_config.model
  end

  def conditional_get_support?; end

  def params; {}; end

  def grouped_search?
    false
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
active_scaffold-3.5.5 test/class_with_finder.rb
active_scaffold-3.5.4 test/class_with_finder.rb
active_scaffold-3.5.3 test/class_with_finder.rb
active_scaffold-3.5.2 test/class_with_finder.rb
active_scaffold-3.5.1 test/class_with_finder.rb
active_scaffold-3.5.0 test/class_with_finder.rb