Sha256: b80b04d8dcf3c1ce252ca0b4435753b1877234dadec73f9c8f95b44c133a1e6b

Contents?: true

Size: 1.83 KB

Versions: 1

Compression:

Stored size: 1.83 KB

Contents

# This file was generated by the `rails generate sharing_tags:install` command.

SharingTags.configure do

  ## default data

  title         "Global site title"
  description   "Global site description"
  page_url      { root_url }
  image         { image_url('img.jpg') }

  # # add additional arguments to each sharing url
  # share_url_params utm_source: "sharing_tags"

  # social network specific data
  # facebook do
  #   app_id "123"
  #   title "Facebook sharing title"
  # end
  # twitter do
  #   title "Short title"
  # end

  # # for switch context call `sharing_tags_context(:user)` in controller action
  # context :user do
  #   title         "User site title"
  #   description  "User site description"
  #   page_url     { users_url }
  # end

  # # for switch context with params call `sharing_tags_context(:car, @user, @car)` in controller action
  # # or pass it in `sharing_tags_buttons context: [:user, @user, @photo]`
  # context :car do
  #   title        { |user, car| "#{user.name} drive on #{car.name}" }
  #   description  { |_, car| car.description  }
  #   page_url     { profile_url }
  # end

  # context :shakespeare do
  #   title "Shakespeare quote"
  #   page_url "http://www.brainyquote.com/quotes/authors/w/william_shakespeare.html"
  #
  #   facebook do
  #     description "We know what we are, but know not what we may be."
  #   end
  #
  #   vkontakte do
  #     description "Love all, trust a few, do wrong to none."
  #   end
  #
  #   twitter do
  #     description "Better three hours too soon than a minute too late."
  #   end
  #
  #   line do
  #     description "If music be the food of love, play on."
  #   end
  #
  #   odnoklassniki do
  #     description "Hell is empty and all the devils are here"
  #   end
  #
  #   google do
  #     description "To do a great right do a little wrong."
  #   end
  # end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sharing_tags-0.0.9 lib/generators/sharing_tags/install/templates/initializer.rb