Class: Refinery::Admin::SettingsController

Inherits:
Refinery::AdminController
  • Object
show all
Defined in:
app/controllers/refinery/admin/settings_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject



18
19
20
21
22
# File 'app/controllers/refinery/admin/settings_controller.rb', line 18

def edit
  @setting = ::Refinery::Setting.find(params[:id])

  render :layout => false if request.xhr?
end

#newObject



13
14
15
16
# File 'app/controllers/refinery/admin/settings_controller.rb', line 13

def new
  form_value_type = ((current_refinery_user.has_role?(:superuser) && params[:form_value_type]) || 'text_area')
  @setting = ::Refinery::Setting.new(:form_value_type => form_value_type)
end