impressionist/tests/test_app/app/controllers/application_controller.rb

13 lines
301 B
Ruby
Raw Normal View History

2011-02-04 04:13:41 +00:00
class ApplicationController < ActionController::Base
protect_from_forgery
if Rails::VERSION::MAJOR >= 5
before_action :secondary_before_action
else
before_filter :secondary_before_action
end
def secondary_before_action
@test_secondary_before_action = "this is a test"
2011-02-04 04:13:41 +00:00
end
end