Sha256: b348bacb8d188ffdea149c2d55e0cead3f4d18dacef49f3a4bf256681d49777c

Contents?: true

Size: 310 Bytes

Versions: 3

Compression:

Stored size: 310 Bytes

Contents

class Admin::ConfigurablesController < Admin::ApplicationController
  
  def show
    
  end
  
  def update
    Configurable.keys.each do |key|
      Configurable.find_or_create_by_name(key).
                   update_attribute(:value,params[key])
    end
    redirect_to admin_configurable_path
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
configurable_engine-0.1.1 app/controllers/admin/configurables_controller.rb
configurable_engine-0.1.0 app/controllers/admin/configurables_controller.rb
configurable_engine-0.0.1 app/controllers/admin/configurables_controller.rb