Module: SocialButterfly::Rails::ActionViewExtension

Defined in:
lib/social_butterfly/rails/action_view_extension.rb

Instance Method Summary collapse

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 facebook_share_button_url(content={}, options={})
  content = { :text => '' }.merge(content)
  options = { }.merge(options)
  SocialButterfly::Services::FacebookService.share_button_url(content, options)
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 google_plus_share_button_url(content={}, options={})
  content = { :text => '' }.merge(content)
  options = { }.merge(options)
  SocialButterfly::Services::GooglePlusService.share_button_url(content, options)
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 twitter_share_button_url(content={}, options={})
  content = { :text => 'Check this out -- ' }.merge(content)
  options = { :via => '' }.merge(options)
  SocialButterfly::Services::TwitterService.share_button_url(content, options)
end