Module: FacebookSocialPlugins
- Defined in:
- lib/facebook-social_plugins.rb,
lib/facebook-social_plugins/rails/engine.rb
Defined Under Namespace
Modules: Helper, Plugin, Rails
Class Method Summary
collapse
Class Method Details
.all_plugins ⇒ Object
16
17
18
|
# File 'lib/facebook-social_plugins.rb', line 16
def self.all_plugins
['ui_helper', 'social', 'button'] + plugins
end
|
.helpers ⇒ Object
20
21
22
|
# File 'lib/facebook-social_plugins.rb', line 20
def self.helpers
['script', 'view', 'open_graph']
end
|
.plugin(name, options = {}) ⇒ Object
24
25
26
27
|
# File 'lib/facebook-social_plugins.rb', line 24
def self.plugin name, options = {}
klass = "FacebookSocialPlugins::Plugin::#{name.to_s.camelize}".constantize
klass.new(options).render
end
|
.plugins ⇒ Object
8
9
10
11
12
13
14
|
# File 'lib/facebook-social_plugins.rb', line 8
def self.plugins
[
'activity_feed', 'add_to_timeline', 'comments', 'facepile',
'like_box', 'like_button', 'live_stream', 'login_button', 'recommendations_box',
'registration', 'send_button', 'subscribe_button'
]
end
|