Show More
Commit Description:
MERGE changeset 306:307 from branch ytopc08-2 that fixes migration bug...
Commit Description:
MERGE changeset 306:307 from branch ytopc08-2 that fixes migration bug
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@308 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
app/controllers/configurations_controller.rb
| 20 lines
| 501 B
| text/x-ruby
| RubyLexer
|
|
r76 | class ConfigurationsController < ApplicationController | ||
before_filter :authenticate | ||||
before_filter { |controller| controller.authorization_by_roles(['admin'])} | ||||
in_place_edit_for :configuration, :key | ||||
in_place_edit_for :configuration, :type | ||||
in_place_edit_for :configuration, :value | ||||
def index | ||||
@configurations = Configuration.find(:all, | ||||
:order => '`key`') | ||||
end | ||||
def reload | ||||
Configuration.reload | ||||
redirect_to :action => 'index' | ||||
end | ||||
end | ||||