Module: Spree::Core::ControllerHelpers::InstanceMethods
- Defined in:
- lib/spree/core/controller_helpers.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#title ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/spree/core/controller_helpers.rb', line 32 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 |
Instance Method Details
#access_forbidden ⇒ Object
24 25 26 |
# File 'lib/spree/core/controller_helpers.rb', line 24 def access_forbidden render :text => 'Access Forbidden', :layout => true, :status => 401 end |