Sha256: c37a801349e579b209050a5687fad3d365fb04bccebb4db1c0efe74bcabc59f3

Contents?: true

Size: 1.02 KB

Versions: 30

Compression:

Stored size: 1.02 KB

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

30 entries across 30 versions & 1 rubygems

Version Path
trusty-cms-4.1.2 app/helpers/rad_social_helper.rb
trusty-cms-4.1.1 app/helpers/rad_social_helper.rb
trusty-cms-4.1.0 app/helpers/rad_social_helper.rb
trusty-cms-4.0.2 app/helpers/rad_social_helper.rb
trusty-cms-3.9.7 app/helpers/rad_social_helper.rb
trusty-cms-3.9.6 app/helpers/rad_social_helper.rb
trusty-cms-3.9.5 app/helpers/rad_social_helper.rb
trusty-cms-4.0.1 app/helpers/rad_social_helper.rb
trusty-cms-3.9.4 app/helpers/rad_social_helper.rb
trusty-cms-3.9.3 app/helpers/rad_social_helper.rb
trusty-cms-3.9.2 app/helpers/rad_social_helper.rb
trusty-cms-4.0.0 app/helpers/rad_social_helper.rb
trusty-cms-3.9.1 app/helpers/rad_social_helper.rb
trusty-cms-3.9.0 app/helpers/rad_social_helper.rb
trusty-cms-3.8.4 app/helpers/rad_social_helper.rb
trusty-cms-3.8.3 app/helpers/rad_social_helper.rb
trusty-cms-3.8.2 app/helpers/rad_social_helper.rb
trusty-cms-3.8.1 app/helpers/rad_social_helper.rb
trusty-cms-3.8.0 app/helpers/rad_social_helper.rb
trusty-cms-3.7.1 app/helpers/rad_social_helper.rb