Module: Spree::Core::ControllerHelpers::InstanceMethods

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#titleObject



30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/spree/core/controller_helpers.rb', line 30

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_forbiddenObject



22
23
24
# File 'lib/spree/core/controller_helpers.rb', line 22

def access_forbidden
  render :text => 'Access Forbidden', :layout => true, :status => 401
end