Show More
Commit Description:
renamed model Configuration to GraderConfiguration, renamed rhtml views to erb, fixed other small errors
Commit Description:
renamed model Configuration to GraderConfiguration, renamed rhtml views to erb, fixed other small errors
File last commit:
Show/Diff file:
Action:
app/controllers/configurations_controller.rb | 20 lines | 513 B | text/x-ruby | RubyLexer |
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 = GraderConfiguration.find(:all,
:order => '`key`')
end
def reload
GraderConfiguration.reload
redirect_to :action => 'index'
end
end