File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -159,8 +159,8 @@ contexts:
159
159
- match : ^\1(?=end)\b
160
160
pop : true
161
161
- include : embedded-expressions
162
- # Uses lookahead to match classes that (may) inherit from ActiveRecord::Base
163
- - match : (^\s*)(?=class\s+.+ActiveRecord::Base\b)
162
+ # Uses lookahead to match classes that (may) inherit from ActiveRecord::Base or ApplicationRecord
163
+ - match : (^\s*)(?=class\s+.+( ActiveRecord::Base|ApplicationRecord) \b)
164
164
push :
165
165
- meta_scope : meta.model.rails
166
166
- match : ^\1(?=end)\b
Original file line number Diff line number Diff line change @@ -24,7 +24,16 @@ def find_model
24
24
end
25
25
end
26
26
27
+ class Product < ActiveRecord ::Base
28
+
29
+ # <- meta.model.rails
30
+
31
+ end
32
+
27
33
class PictureFile < ApplicationRecord
34
+
35
+ # <- meta.model.rails
36
+
28
37
after_commit :delete_picture_file_from_disk , on : :destroy
29
38
# ^ support.function.activerecord.rails
30
39
You can’t perform that action at this time.
0 commit comments