Sha256: c42cfb95c4301c5e9d2c193e1d0319d67d28d8983c75c7b86cd75bd752bc1b83

Contents?: true

Size: 627 Bytes

Versions: 4

Compression:

Stored size: 627 Bytes

Contents

class Admin::SettingsController < ApplicationController
  include AdminLayoutHelper
  include ExtensibleObjectHelper

  active_scaffold :setting do |config|
    config.label = "Site Settings"

    config.create.link = nil

    config.columns = [:label, :keyname, :keyval, :description, :created_at, :updated_at]
    
    config.columns[:label].label = 'Setting'
    config.columns[:keyval].label = 'Value'
    
    config.list.columns =[:label, :keyval ]
    
    config.list.sorting = [{:label => :asc}]
    
    config.create.columns = config.update.columns = [:label, :description, :keyval]
  end
  
  handle_extensions
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
brisk-bills-0.8.2 app/controllers/admin/settings_controller.rb
brisk-bills-0.8.1 app/controllers/admin/settings_controller.rb
brisk-bills-0.7.0 app/controllers/admin/settings_controller.rb
brisk-bills-0.6.0 app/controllers/admin/settings_controller.rb