pixels-and-bits/jabe

View on GitHub
app/controllers/jabe/admin/settings_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Jabe
  class Admin::SettingsController < Admin::BaseController

    def update
      if Jabe::SETTINGS.update_attributes(params[:settings])
         Jabe::SETTINGS.do_updates
        redirect_to admin_root_path, :notice => 'Settings updated.'
      else
        render :edit
      end
    end
  end
end