Module: Disqus
- Defined in:
- lib/disqus.rb,
lib/disqus/api.rb,
lib/disqus/post.rb,
lib/disqus/forum.rb,
lib/disqus/author.rb,
lib/disqus/thread.rb,
lib/disqus/widget.rb,
lib/disqus/version.rb,
lib/disqus/view_helpers.rb
Overview
:nodoc:
Defined Under Namespace
Modules: Version, ViewHelpers Classes: AnonymousAuthor, Api, Author, BaseAuthor, Forum, Post, Thread, Widget
Class Method Summary collapse
-
.defaults ⇒ Object
Disqus defaults: :account => “”, :avatar_size => 48, :color => “grey”, :default_tab => “popular”, :hide_avatars => false, :hide_mods => true, :num_items => 15, :show_powered_by => true, :orientation => “horizontal”.
-
.enable_merb ⇒ Object
Load the view helpers if the gem is included in a Merb app.
-
.enable_rails ⇒ Object
Load the view helpers if the gem is included in a Rails app.
Class Method Details
.defaults ⇒ Object
Disqus defaults:
:account => "",
:avatar_size => 48,
:color => "grey",
:default_tab => "popular",
:hide_avatars => false,
:hide_mods => true,
:num_items => 15,
:show_powered_by => true,
:orientation => "horizontal"
46 47 48 |
# File 'lib/disqus.rb', line 46 def self.defaults @defaults end |
.enable_merb ⇒ Object
Load the view helpers if the gem is included in a Merb app.
58 59 60 61 62 |
# File 'lib/disqus.rb', line 58 def self.enable_merb return if Merb::Controller.instance_methods.include? 'disqus_thread' require 'disqus/view_helpers' Merb::Controller.class_eval { include Disqus::ViewHelpers } end |
.enable_rails ⇒ Object
Load the view helpers if the gem is included in a Rails app.
51 52 53 54 55 |
# File 'lib/disqus.rb', line 51 def self.enable_rails return if ActionView::Base.instance_methods.include? 'disqus_thread' require 'disqus/view_helpers' ActionView::Base.class_eval { include Disqus::ViewHelpers } end |