Complete refactoring of messaging module. From now messages are saved only once and send afterwards via a the 'send_emails'-rake-task.
This commit is contained in:
parent
6ce6c2c75a
commit
e8d55e50c0
30 changed files with 220 additions and 349 deletions
|
|
@ -1,29 +0,0 @@
|
|||
# Settings specified here will take precedence over those in config/environment.rb
|
||||
|
||||
# In the development environment your application's code is reloaded on
|
||||
# every request. This slows down response time but is perfect for development
|
||||
# since you don't have to restart the webserver when you make code changes.
|
||||
config.cache_classes = false
|
||||
|
||||
# Log error messages when you accidentally call methods on nil.
|
||||
config.whiny_nils = true
|
||||
|
||||
# Show full error reports and disable caching
|
||||
config.action_controller.consider_all_requests_local = true
|
||||
config.action_controller.perform_caching = false
|
||||
config.action_view.debug_rjs = true
|
||||
|
||||
# Don't care if the mailer can't send
|
||||
config.action_mailer.raise_delivery_errors = false
|
||||
|
||||
# Configure an SMTP server for email sending in development mode:
|
||||
# (cf. http://rails.rubyonrails.com/classes/ActionMailer/Base.html for info on options)
|
||||
#config.action_mailer.smtp_settings = {
|
||||
# :address => "smtp.dresdener27.de",
|
||||
# :port => 25,
|
||||
# :domain => "dresdener27",
|
||||
# :authentication => :login,
|
||||
# :user_name => "benni@dresdener27.de",
|
||||
# :password => "ben234go"
|
||||
#}
|
||||
|
||||
|
|
@ -2,6 +2,9 @@ ActionController::Routing::Routes.draw do |map|
|
|||
map.my_profile '/home/profile', :controller => 'home', :action => 'profile'
|
||||
map.my_tasks '/home/tasks', :controller => 'tasks', :action => 'myTasks'
|
||||
|
||||
map.resources :messages, :only => [:index, :show, :new, :create],
|
||||
:member => { :reply => :get, :user => :get, :group => :get }
|
||||
|
||||
map.namespace :admin do |admin|
|
||||
admin.resources :users
|
||||
admin.resources :workgroups, :member => { :memberships => :get }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue