Module: Spree::Core::ControllerHelpers

Included in:
BaseController
Defined in:
lib/spree/core/controller_helpers.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/spree/core/controller_helpers.rb', line 4

def self.included(receiver)
  receiver.send :include, InstanceMethods
  receiver.send :layout, '/spree/layouts/spree_application'
  receiver.send :helper, 'spree/hook'
  receiver.send :before_filter, 'instantiate_controller_and_action_names'
  receiver.send :before_filter, 'set_user_language'

  receiver.send :helper_method, 'title'
  receiver.send :helper_method, 'title='
  receiver.send :helper_method, 'accurate_title'
  receiver.send :helper_method, 'get_taxonomies'
  receiver.send :helper_method, 'current_gateway'
  receiver.send :helper_method, 'current_order'
  receiver.send :include, SslRequirement
  receiver.send :include, Spree::Core::CurrentOrder
end