Module: SocialButterfly::Rails::ActionViewExtension
- Defined in:
- lib/social_butterfly/rails/action_view_extension.rb
Instance Method Summary collapse
- #facebook_share_button_url(content = {}, options = {}) ⇒ Object
- #google_plus_share_button_url(content = {}, options = {}) ⇒ Object
- #twitter_share_button_url(content = {}, options = {}) ⇒ Object
Instance Method Details
#facebook_share_button_url(content = {}, options = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/social_butterfly/rails/action_view_extension.rb', line 4 def (content={}, ={}) content = { :text => '' }.merge(content) = { }.merge() SocialButterfly::Services::FacebookService.(content, ) end |
#google_plus_share_button_url(content = {}, options = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/social_butterfly/rails/action_view_extension.rb', line 10 def (content={}, ={}) content = { :text => '' }.merge(content) = { }.merge() SocialButterfly::Services::GooglePlusService.(content, ) end |
#twitter_share_button_url(content = {}, options = {}) ⇒ Object
16 17 18 19 20 |
# File 'lib/social_butterfly/rails/action_view_extension.rb', line 16 def (content={}, ={}) content = { :text => 'Check this out -- ' }.merge(content) = { :via => '' }.merge() SocialButterfly::Services::TwitterService.(content, ) end |