Module: SocialAvatarProxy::Engine::Helpers
- Defined in:
- lib/social_avatar_proxy/engine.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
25 26 27 28 |
# File 'lib/social_avatar_proxy/engine.rb', line 25 def self.included(base) base.helper_method :twitter_avatar_path base.helper_method :facebook_avatar_path end |
Instance Method Details
#facebook_avatar_path(identifier) ⇒ Object
34 35 36 |
# File 'lib/social_avatar_proxy/engine.rb', line 34 def facebook_avatar_path(identifier) "/#{SocialAvatarProxy::Engine.mounted_at}/facebook/#{identifier}" end |
#twitter_avatar_path(identifier) ⇒ Object
30 31 32 |
# File 'lib/social_avatar_proxy/engine.rb', line 30 def twitter_avatar_path(identifier) "/#{SocialAvatarProxy::Engine.mounted_at}/twitter/#{identifier}" end |