Module: FbRails::Integration::ActionView

Defined in:
lib/fb_rails/integration/action_view.rb

Instance Method Summary collapse

Instance Method Details

#fbml(tag, content = '', options = {}) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/fb_rails/integration/action_view.rb', line 8

def fbml(tag, content = '', options = {})
  if content.is_a?(Hash)
    options = content
    content = ''
  end

  ("fb:#{tag}", content, options)
end

#include_facebook_javascript(options = {}) ⇒ Object



4
5
6
# File 'lib/fb_rails/integration/action_view.rb', line 4

def include_facebook_javascript(options = {})
  render options[:async] ? 'fb/async_js' : 'fb/blocking_js'
end