Sha256: 506065449a1c60800cc454a5962041d86b9ab8e23179d8a08dbe295f2aa9f897

Contents?: true

Size: 895 Bytes

Versions: 92

Compression:

Stored size: 895 Bytes

Contents

module RadSocialHelper
  def rad_test_method
    'SURPRISE SURPRISE SURPRISE'
  end

  def rad_share_widget(options)
    url = options[:url].nil? ? request.url : options[:url]
    message = options[:message].nil? ? "Check out #{options[:title]}." : options[:message]
    email_subject = options[:email_subject].nil? ? options[:title] : options[:email_subject]
    email_message = options[:email_message].nil? ? "I thought you might be interested in this: #{url}" : "#{options[:email_message]} #{url}"
    email_action_url = options[:email_action_url].nil? ? '/rad_social/mail' : options[:email_action_url]

    render partial: 'widget/horizontal_widget',
           locals: { url: url,
                     message: message,
                     email_subject: email_subject,
                     email_message: email_message,
                     email_action_url: email_action_url }
  end
end

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
trusty-cms-7.0.22 app/helpers/rad_social_helper.rb
trusty-cms-7.0.21 app/helpers/rad_social_helper.rb
trusty-cms-7.0.20 app/helpers/rad_social_helper.rb
trusty-cms-7.0.19 app/helpers/rad_social_helper.rb
trusty-cms-7.0.18 app/helpers/rad_social_helper.rb
trusty-cms-7.0.17 app/helpers/rad_social_helper.rb
trusty-cms-7.0.16 app/helpers/rad_social_helper.rb
trusty-cms-7.0.14 app/helpers/rad_social_helper.rb
trusty-cms-7.0.13 app/helpers/rad_social_helper.rb
trusty-cms-7.0.12 app/helpers/rad_social_helper.rb
trusty-cms-7.0.15 app/helpers/rad_social_helper.rb
trusty-cms-7.0.9.1 app/helpers/rad_social_helper.rb
trusty-cms-7.0.11 app/helpers/rad_social_helper.rb
trusty-cms-7.0.10 app/helpers/rad_social_helper.rb
trusty-cms-7.0.9 app/helpers/rad_social_helper.rb
trusty-cms-7.0.8 app/helpers/rad_social_helper.rb
trusty-cms-7.0.7 app/helpers/rad_social_helper.rb
trusty-cms-7.0.6 app/helpers/rad_social_helper.rb
trusty-cms-7.0.5 app/helpers/rad_social_helper.rb
trusty-cms-7.0.4 app/helpers/rad_social_helper.rb