Sha256: 4e60a36a87165103d9aa4f65b2527991f91faf5622674ba0d52f37a46ec4e8a8

Contents?: true

Size: 271 Bytes

Versions: 4

Compression:

Stored size: 271 Bytes

Contents

class DogController < ApplicationController

  before_actions do
    all              { @dog = action_name }
    only(:one)       { @dog = "before one" }
    only(:one, :two) { @dog = "before one and two" }
  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/dog_controller.rb
before_actions-2.0.2 spec/dummy/app/controllers/dog_controller.rb
before_actions-2.0.1 spec/dummy/app/controllers/dog_controller.rb
before_actions-2.0.0 spec/dummy/app/controllers/dog_controller.rb