This repository has been archived on 2024-12-01. You can view files and clone it, but cannot push or open issues or pull requests.
redmine_rodax_crm/app/controllers/contacts_settings_controller.rb
2012-01-03 16:18:32 +00:00

16 lines
472 B
Ruby

class ContactsSettingsController < ApplicationController
unloadable
before_filter :find_project_by_project_id, :authorize
def save
if params[:contacts_settings] && params[:contacts_settings].is_a?(Hash) then
settings = params[:contacts_settings]
settings.map do |k, v|
ContactsSetting[k, @project.id] = v
end
end
redirect_to :controller => 'projects', :action => 'settings', :tab => 'contacts', :id => @project
end
end