Sha256: 7927c1e938663b31b8c1d616e09a30b2afdc8360abfb760115bcf7c6143fc1c7

Contents?: true

Size: 223 Bytes

Versions: 4

Compression:

Stored size: 223 Bytes

Contents

class CatController < ApplicationController

  before_actions do
    all { @cat = action_name }
  end

  after_actions do
    only(:two) { @cat = "after 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/cat_controller.rb
before_actions-2.0.2 spec/dummy/app/controllers/cat_controller.rb
before_actions-2.0.1 spec/dummy/app/controllers/cat_controller.rb
before_actions-2.0.0 spec/dummy/app/controllers/cat_controller.rb