Method: Blogit::Configuration#disqus_shortname=

Defined in:
lib/blogit/configuration.rb

#disqus_shortname=(shortname) ⇒ Object

Sets #disqus_shortname.

If the user has defined a disqus shortname but hasn't set include_comments to
:disqus will print a warning to the console.

shortname - A String with the diquss username to use.



146
147
148
149
150
151
152
153
# File 'lib/blogit/configuration.rb', line 146

def disqus_shortname=(shortname)
  return if shortname.blank?
  unless include_comments == :disqus
    blogit_warn "You've set config.disqus_shortname in your blogit config file but " \
     "config.include_comments is not set to :disqus"
  end
  @disqus_shortname = shortname
end