Module Disqus::ViewHelpers

  1. lib/disqus/view_helpers.rb

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.

Public instance methods

disqus_combo (options = {})
[show source]
# File lib/disqus/view_helpers.rb, line 39
    def disqus_combo(options = {})
      Disqus::Widget::combo(options)
    end
disqus_comment_counts (options = {})
[show source]
# File lib/disqus/view_helpers.rb, line 19
    def disqus_comment_counts(options = {})
      Disqus::Widget::comment_counts(options)
    end
disqus_popular_threads (options = {})
[show source]
# File lib/disqus/view_helpers.rb, line 29
    def disqus_popular_threads(options = {})
      Disqus::Widget::popular_threads(options)
    end
disqus_recent_comments (options = {})
[show source]
# File lib/disqus/view_helpers.rb, line 34
    def disqus_recent_comments(options = {})
      Disqus::Widget::recent_comments(options)
    end
disqus_thread (options = {})
[show source]
# File lib/disqus/view_helpers.rb, line 14
    def disqus_thread(options = {})
      Disqus::Widget::thread(options)
    end
disqus_top_commenters (options = {})
[show source]
# File lib/disqus/view_helpers.rb, line 24
    def disqus_top_commenters(options = {})
      Disqus::Widget::top_commenters(options)
    end