2011-02-04 04:13:41 +00:00
|
|
|
class ApplicationController < ActionController::Base
|
|
|
|
protect_from_forgery
|
2017-05-10 19:20:11 +00:00
|
|
|
if Rails::VERSION::MAJOR >= 5
|
|
|
|
before_action :secondary_before_action
|
|
|
|
else
|
|
|
|
before_filter :secondary_before_action
|
|
|
|
end
|
2012-03-06 21:42:28 +00:00
|
|
|
|
2017-05-10 19:20:11 +00:00
|
|
|
def secondary_before_action
|
|
|
|
@test_secondary_before_action = "this is a test"
|
2011-02-04 04:13:41 +00:00
|
|
|
end
|
|
|
|
end
|