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
-
#disqus_combo(options = {}) ⇒ Object
See Disqus::Widget.combo.
-
#disqus_comment_counts(options = {}) ⇒ Object
See Disqus::Widget.comment_counts.
-
#disqus_popular_threads(options = {}) ⇒ Object
See Disqus::Widget.popular_threads.
-
#disqus_recent_comments(options = {}) ⇒ Object
See Disqus::Widget.recent_comments.
-
#disqus_thread(options = {}) ⇒ Object
See Disqus::Widget.thread.
-
#disqus_top_commenters(options = {}) ⇒ Object
See Disqus::Widget.top_commenters.
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( = {}) Disqus::Widget::combo() 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( = {}) Disqus::Widget::comment_counts() end |
#disqus_popular_threads(options = {}) ⇒ Object
See Disqus::Widget.popular_threads
29 30 31 |
# File 'lib/disqus/view_helpers.rb', line 29 def disqus_popular_threads( = {}) Disqus::Widget::popular_threads() 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( = {}) Disqus::Widget::recent_comments() end |
#disqus_thread(options = {}) ⇒ Object
See Disqus::Widget.thread
14 15 16 |
# File 'lib/disqus/view_helpers.rb', line 14 def disqus_thread( = {}) Disqus::Widget::thread() 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( = {}) Disqus::Widget::top_commenters() end |