Sha256: 74526ac4e7f78a2ef42397e620ba48abc9b469c384277cb65652c5f35b63cd4d

Contents?: true

Size: 323 Bytes

Versions: 3

Compression:

Stored size: 323 Bytes

Contents

class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  before_action :set_root_breadcrumb

  private

  def set_root_breadcrumb
    breadcrumbs.add :home, root_path
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
breadcrumbs-0.3.0 examples/myapp/app/controllers/application_controller.rb
breadcrumbs-0.2.0 examples/myapp/app/controllers/application_controller.rb
breadcrumbs-0.1.7 examples/myapp/app/controllers/application_controller.rb