Class: Blog::Admin::DisqusSettingsController

Inherits:
Admin::BaseController
  • Object
show all
Defined in:
app/controllers/blog/admin/disqus_settings_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject



8
9
10
11
# File 'app/controllers/blog/admin/disqus_settings_controller.rb', line 8

def edit
  @config = BlogConfiguration.current
  @preferences = ['disqus_shortname']
end

#showObject



3
4
5
6
# File 'app/controllers/blog/admin/disqus_settings_controller.rb', line 3

def show
  @config = BlogConfiguration.current
  @preferences = ['disqus_shortname']
end

#updateObject



13
14
15
16
17
18
19
20
# File 'app/controllers/blog/admin/disqus_settings_controller.rb', line 13

def update
  BlogConfiguration.current.update_attributes(params[:blog_configuration])
  respond_to do |format|
    format.html {
      redirect_to admin_disqus_settings_path
    }
  end
end