Module: Draper::Configuration

Defined in:
lib/draper/configuration.rb

Instance Method Summary collapse

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



3
4
5
# File 'lib/draper/configuration.rb', line 3

def configure
  yield self
end

#default_controllerObject



7
8
9
# File 'lib/draper/configuration.rb', line 7

def default_controller
  @@default_controller ||= ApplicationController
end

#default_controller=(controller) ⇒ Object



11
12
13
# File 'lib/draper/configuration.rb', line 11

def default_controller=(controller)
  @@default_controller = controller
end

#default_query_methods_strategyObject



15
16
17
# File 'lib/draper/configuration.rb', line 15

def default_query_methods_strategy
  @@default_query_methods_strategy ||= :active_record
end

#default_query_methods_strategy=(strategy) ⇒ Object



19
20
21
# File 'lib/draper/configuration.rb', line 19

def default_query_methods_strategy=(strategy)
  @@default_query_methods_strategy = strategy
end