Define instance method outside #included (#3128)

This commit is contained in:
alpaca-tc
2017-05-19 18:41:45 +09:00
committed by Eugen Rochko
parent 6e4c7d6211
commit 198ae3e366
5 changed files with 103 additions and 105 deletions

View File

@ -1,11 +1,7 @@
# frozen_string_literal: true
module Targetable
extend ActiveSupport::Concern
included do
def object_type
:object
end
def object_type
:object
end
end