Class: Blog::Admin::DisqusSettingsController
- Inherits:
-
Admin::BaseController
- Object
- Admin::BaseController
- Blog::Admin::DisqusSettingsController
- Defined in:
- app/controllers/blog/admin/disqus_settings_controller.rb
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
8 9 10 11 |
# File 'app/controllers/blog/admin/disqus_settings_controller.rb', line 8 def edit @config = BlogConfiguration.current @preferences = ['disqus_shortname'] end |
#show ⇒ Object
3 4 5 6 |
# File 'app/controllers/blog/admin/disqus_settings_controller.rb', line 3 def show @config = BlogConfiguration.current @preferences = ['disqus_shortname'] end |
#update ⇒ Object
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 |