Sha256: f6aaa8319df645b3c53299f78fbc2419e3095ac82e276ffa0a49a888743d3362

Contents?: true

Size: 239 Bytes

Versions: 4

Compression:

Stored size: 239 Bytes

Contents

class SquirrelController < ApplicationController

  before_actions do
    all              { @squirrel = action_name }
    except(:one)     { @squirrel = "except before one" }
  end

  def one
  end

  def two
  end

  def three
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
before_actions-2.0.3 spec/dummy/app/controllers/squirrel_controller.rb
before_actions-2.0.2 spec/dummy/app/controllers/squirrel_controller.rb
before_actions-2.0.1 spec/dummy/app/controllers/squirrel_controller.rb
before_actions-2.0.0 spec/dummy/app/controllers/squirrel_controller.rb