Skip to content

Commit 76bf8ac

Browse files
committed
ensure required dependancies
1 parent f0f9842 commit 76bf8ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugin.rb

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def execute(args)
3232
Jobs.enqueue(:emit_segment_user_identify, user_id: user.id)
3333
end
3434

35+
require_dependency 'user'
3536
class ::User
3637
after_create :emit_segment_user_identify
3738
after_create :emit_segment_user_created
@@ -58,6 +59,7 @@ def emit_segment_user_created
5859
end
5960
end
6061

62+
require_dependency 'application_controller'
6163
class ::ApplicationController
6264
before_filter :emit_segment_user_tracker
6365
def emit_segment_user_tracker
@@ -81,6 +83,7 @@ def segment_common_controller_actions?
8183
end
8284
end
8385

86+
require_dependency 'post'
8487
class ::Post
8588
after_create :emit_segment_post_created
8689

@@ -97,6 +100,7 @@ def emit_segment_post_created
97100
end
98101
end
99102

103+
require_dependency 'topic'
100104
class ::Topic
101105
after_create :emit_segment_topic_created
102106

0 commit comments

Comments
 (0)