Skip to content

Commit f890d48

Browse files
dingsdaxclaude
andcommitted
fix(yabeda): Use ActionController::API in yabeda-mini app
The app is configured as api_only but inherited from ActionController::Base, which includes CSRF protection middleware. Switch to ActionController::API to align with the api_only setting and eliminate the CSRF warning. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2ad73c0 commit f890d48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/apps/yabeda-mini/app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Post < ActiveRecord::Base
100100
end
101101

102102
# Controllers
103-
class ApplicationController < ActionController::Base
103+
class ApplicationController < ActionController::API
104104
around_action :track_metrics
105105

106106
private

0 commit comments

Comments
 (0)