Module: Spree::Core::ControllerHelpers
- Included in:
- BaseController
- Defined in:
- lib/spree/core/controller_helpers.rb
Instance Attribute Summary collapse
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#title ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/spree/core/controller_helpers.rb', line 26 def title title_string = @title.present? ? @title : accurate_title if title_string.present? if Spree::Config[:always_put_site_name_in_title] [default_title, title_string].join(' - ') else title_string end else default_title end end |
Class Method Details
.included(receiver) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/spree/core/controller_helpers.rb', line 4 def self.included(receiver) receiver.send :layout, :get_layout 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_order' receiver.send :include, SslRequirement receiver.send :include, Spree::Core::CurrentOrder end |
Instance Method Details
#access_forbidden ⇒ Object
18 19 20 |
# File 'lib/spree/core/controller_helpers.rb', line 18 def access_forbidden render :text => 'Access Forbidden', :layout => true, :status => 401 end |