Class: Ransack::Adapters::MongoidAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/ransack/adapters.rb

Instance Method Summary collapse

Instance Method Details

#require_adapterObject


46
47
48
49
# File 'lib/ransack/adapters.rb', line 46

def require_adapter
  require 'ransack/adapters/mongoid/ransack/translate'
  require 'ransack/adapters/mongoid'
end

#require_constantsObject


42
43
44
# File 'lib/ransack/adapters.rb', line 42

def require_constants
  require 'ransack/adapters/mongoid/ransack/constants'
end

#require_contextObject


51
52
53
# File 'lib/ransack/adapters.rb', line 51

def require_context
  require 'ransack/adapters/mongoid/ransack/visitor'
end

#require_nodesObject


55
56
57
# File 'lib/ransack/adapters.rb', line 55

def require_nodes
  require 'ransack/adapters/mongoid/ransack/nodes/condition'
end

#require_searchObject


59
60
61
# File 'lib/ransack/adapters.rb', line 59

def require_search
  require 'ransack/adapters/mongoid/ransack/context'
end