Commit a7402f73386d909e931dc2e393c9c0e1be656cb0
1 parent
f72cca01
Exists in
master
extend objects with ActionView::Helpers::AssetTagHelper
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/letter_avatar/avatar_helper.rb
... | ... | @@ -14,7 +14,7 @@ module LetterAvatar |
14 | 14 | |
15 | 15 | def letter_avatar_tag(name, size = 64, options = {}) |
16 | 16 | if defined?(ActionView::Helpers::AssetTagHelper) |
17 | - include ActionView::Helpers::AssetTagHelper | |
17 | + extend ActionView::Helpers::AssetTagHelper | |
18 | 18 | image_tag(letter_avatar_url(name, size), options.merge(alt: name)) |
19 | 19 | else |
20 | 20 | "<img alt=\"#{name}\" class\"#{options.fetch(:class)}\" src=\"#{letter_avatar_url(name, size)}\" />" | ... | ... |