Module: Draper::Configuration
- Defined in:
- lib/draper/configuration.rb
Instance Method Summary collapse
- #configure {|_self| ... } ⇒ Object
- #default_controller ⇒ Object
- #default_controller=(controller) ⇒ Object
- #default_query_methods_strategy ⇒ Object
- #default_query_methods_strategy=(strategy) ⇒ Object
Instance Method Details
#configure {|_self| ... } ⇒ Object
3 4 5 |
# File 'lib/draper/configuration.rb', line 3 def configure yield self end |
#default_controller ⇒ Object
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_strategy ⇒ Object
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 |