Sha256: ef4b81f1157025f0f612593567d810847ae0ea0a1a39b8cc1a71698ea6a9d9d9
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
# # Blogaze # Copyright (C) 2011-2013 Jack Polgar # # Blogaze is released under the BSD 3-clause license. # @license http://opensource.org/licenses/BSD-3-Clause # module Blogaze module Admin class Settings < Controller map '/admin/settings' def index # Get themes @themes = [] ::Blogaze::Theme.registered.each do |theme| @themes.push theme[0].to_s end respond(view_file('admin/settings/index')) end def save request[:settings].each do |setting, value| ::Blogaze.database[:settings].where(:setting => setting).update(:value => value) end redirect Settings.r('/') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blogaze-0.0.1 | lib/blogaze/controller/admin/settings.rb |