module Deletable
extend ActiveSupport::Concern
included do
enum deleted_reason: {
not_deleted: 1,
censored: 2,
banned: 3,
}
scope :deleted, -> () { where.not(not_deleted: 1) }
end
end
class User < ApplicationRecord
include Deletable
end
class Blog < ApplicationRecord
include Deletable
end
Currently rbs_rails doesn't generate methods like User#not_deleted? etc.
Is it intentional?
Let's say we have the following module Deletable:
Currently rbs_rails doesn't generate methods like
User#not_deleted?
etc. Is it intentional?