Displaying 1 result from an estimated 1 matches for "nuevusuario".
2006 Jul 18
7
Observer not working
...Observer < ActiveRecord::Observer
def after_create(user)
breakpoint
setting = get_setting(''sys_notify_enable_user_create'')
if setting? then
AdminMailer.deliver_simple_monitor_alert(''Se ha creado un nuevusuario'',
"Nombre: #{user.name} \nCorreo: #{user.email} \nDetalle:
#{user.detail} ")
end
end
end
UserObserver.instance
config/enviroment.rb:
config.active_record.observers = :user_observer
Thanks everybody