Skip to content

Commit

Permalink
fix: bad model warning only in test env
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoyoussef committed Nov 2, 2024
1 parent f9634c3 commit 9d369a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/dummy/app/models/bad.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
unless Rails.env.test?
class Bad
include ActiveModel::API
end
end

0 comments on commit 9d369a9

Please sign in to comment.