Sha256: 7535fbd990a9aa5d49cc8ca15aa0fcedf008e4f74c012834e2df7a9933a17108

Contents?: true

Size: 436 Bytes

Versions: 28

Compression:

Stored size: 436 Bytes

Contents

class Admin::InquirySettingsController < Admin::BaseController
  
  crudify :inquiry_setting, :title_attribute => "name", :order => 'name ASC'
  
  def update
    @inquiry_setting.update_attributes(params[:inquiry_setting])
    
    if @inquiry_setting.valid?
      flash[:notice] = "'#{@inquiry_setting.name}' was successfully updated."
      redirect_to admin_inquiries_url
    else
      render :action => 'edit'
    end
  end
  
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
refinerycms-0.9.5.13 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.5.12 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.5.11 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.5.10 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.5.9 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.5.8 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.5.7 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.5.6 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.5.5 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.5.4 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.5.3 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.5.2 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.5.1 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.5 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.4.5 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.4.4 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.4.3 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.4.2 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.4.1 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb
refinerycms-0.9.4 vendor/plugins/inquiries/app/controllers/admin/inquiry_settings_controller.rb