Define instance method outside #included (#3128)
parent
6e4c7d6211
commit
198ae3e366
@ -1,11 +1,7 @@ |
||||
# frozen_string_literal: true |
||||
|
||||
module Targetable |
||||
extend ActiveSupport::Concern |
||||
|
||||
included do |
||||
def object_type |
||||
:object |
||||
end |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue