Sha256: 9b881a21fced4422351f024c6dc1a5d3be480161ad61316debc1015dbb87e383
Contents?: true
Size: 846 Bytes
Versions: 7
Compression:
Stored size: 846 Bytes
Contents
module Flakey module Facebook def facebook_nickname(options = {}) options[:nickname] || Flakey.configuration.facebook_nickname end def facebook_profile_url(options = {}) nickname = options[:nickname] || facebook_nickname "https://www.facebook.com/" + nickname end def like_button(options = {}) url = options[:url] || request.url layout = options[:layout] || 'button_count' width = options[:width] || 250 send = options[:send] || false font = options[:font] || 'tahoma' class_list = options[:class] || 'fb-like' show_faces = options[:show_faces] || false content_tag :div, '', :class => class_list, data: { href: url, send: send, layout: layout, width: width.to_s, :'show-faces' => show_faces, font: font } end end end
Version data entries
7 entries across 7 versions & 1 rubygems