Module: SpreeBase::InstanceMethods
- Defined in:
- lib/spree_base.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#title ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/spree_base.rb', line 11 def title title_string = @title.blank? ? accurate_title : @title if title_string.blank? default_title else if Spree::Config[:always_put_site_name_in_title] [default_title, title_string].join(' - ') else title_string end end end |
Instance Method Details
#access_forbidden ⇒ Object
3 4 5 |
# File 'lib/spree_base.rb', line 3 def access_forbidden render :text => 'Access Forbidden', :layout => true, :status => 401 end |