|
|
@ -65,12 +65,7 @@ module Semantic |
|
|
|
def build_log_subscriber_from(event_group) |
|
|
|
classname = event_group.to_s.camelize |
|
|
|
options = Rails.application.config.x.send(event_group).to_h |
|
|
|
case classname |
|
|
|
when 'ActionController' |
|
|
|
Semantic::Subscribers.const_get(classname).new(**options) |
|
|
|
else |
|
|
|
Semantic::Subscribers.const_get(classname).new |
|
|
|
end |
|
|
|
Semantic::Subscribers.const_get(classname).new(**options) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|