Module: Disqus::ViewHelpers

Defined in:
lib/disqus/view_helpers.rb

Overview

Shortcuts to access the widgets as simple functions as opposed to using their full qualified names. These helpers are loaded automatically in Rails and Merb apps.

For Sinatra, Camping, Nitro or other frameworks, you can include the helper if you wish, or use the fully-qualified names. Really this is just here for aesthetic purposes and to make it less likely to step on anyone’s namespace.

Instance Method Summary collapse

Instance Method Details

#disqus_combo(options = {}) ⇒ Object

See Disqus::Widget.combo



39
40
41
# File 'lib/disqus/view_helpers.rb', line 39

def disqus_combo(options = {})
  Disqus::Widget::combo(options)
end

#disqus_comment_counts(options = {}) ⇒ Object

See Disqus::Widget.comment_counts



19
20
21
# File 'lib/disqus/view_helpers.rb', line 19

def disqus_comment_counts(options = {})
  Disqus::Widget::comment_counts(options)
end

See Disqus::Widget.popular_threads



29
30
31
# File 'lib/disqus/view_helpers.rb', line 29

def disqus_popular_threads(options = {})
  Disqus::Widget::popular_threads(options)
end

#disqus_recent_comments(options = {}) ⇒ Object

See Disqus::Widget.recent_comments



34
35
36
# File 'lib/disqus/view_helpers.rb', line 34

def disqus_recent_comments(options = {})
  Disqus::Widget::recent_comments(options)
end

#disqus_thread(options = {}) ⇒ Object

See Disqus::Widget.thread



14
15
16
# File 'lib/disqus/view_helpers.rb', line 14

def disqus_thread(options = {})
  Disqus::Widget::thread(options)
end

#disqus_top_commenters(options = {}) ⇒ Object

See Disqus::Widget.top_commenters



24
25
26
# File 'lib/disqus/view_helpers.rb', line 24

def disqus_top_commenters(options = {})
  Disqus::Widget::top_commenters(options)
end