Closed jeconst closed 5 years ago
When an ActiveRecord model is nested inside a module, it isn't recognized as an ActiveRecord model (so things like :R don't jump to the schema):
:R
module Blog class Post < ApplicationRecord self.table_name = "blog_posts" # ... end end
This updates the patterns for two heuristics to allow leading indentation and recognize such models.
Thanks!
When an ActiveRecord model is nested inside a module, it isn't recognized as an ActiveRecord model (so things like
:R
don't jump to the schema):This updates the patterns for two heuristics to allow leading indentation and recognize such models.