aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/rails/plugin/templates/app/controllers/%namespaced_name%/application_controller.rb.tt
blob: b86ef0f2f8e362d75d51ed9aea89104543783903 (plain) (blame)
1
2
3
4
5
6
<%= wrap_in_modules <<~rb
  class ApplicationController < ActionController::#{api? ? "API" : "Base"}
    #{ api? ? '# ' : '' }protect_from_forgery with: :exception
  end
rb
%>