Skip to content

Commit 3a6b119

Browse files
Merge pull request #3 from collectiveidea/include
Reinstate loading the helper in a better way
2 parents be9e984 + 9781522 commit 3a6b119

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
module CloudflareImageResizing
22
class Engine < ::Rails::Engine
33
config.cloudflare_image_resizing = Configuration.new
4+
5+
config.to_prepare do
6+
ActiveSupport.on_load :action_controller do
7+
if respond_to?(:helper)
8+
helper CloudflareImageResizing::Helper
9+
end
10+
end
11+
end
412
end
513
end

0 commit comments

Comments
 (0)