##// END OF EJS Templates
add missing Portuguese jQuery UI date picker (#13584)...
add missing Portuguese jQuery UI date picker (#13584) jquery.ui.datepicker-pt.js is from https://raw.github.com/jquery/jquery-ui/49f9b849b9c5023f13/ui/i18n/jquery.ui.datepicker-pt.js git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11686 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r10939:e396a0eebe07
r11456:8045ef9d3dd2
Show More
news_observer.rb
22 lines | 960 B | text/x-ruby | RubyLexer
Toshi MARUYAMA
remove trailing white-spaces from app/models/news_observer.rb....
r6756 # Redmine - project management software
Jean-Philippe Lang
Copyright for 2013 (#12788)....
r10939 # Copyright (C) 2006-2013 Jean-Philippe Lang
Eric Davis
Added observers to watch model objects for mail delivery instead of calling Mailer....
r2548 #
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
Toshi MARUYAMA
remove trailing white-spaces from app/models/news_observer.rb....
r6756 #
Eric Davis
Added observers to watch model objects for mail delivery instead of calling Mailer....
r2548 # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
Toshi MARUYAMA
remove trailing white-spaces from app/models/news_observer.rb....
r6756 #
Eric Davis
Added observers to watch model objects for mail delivery instead of calling Mailer....
r2548 # You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class NewsObserver < ActiveRecord::Observer
def after_create(news)
Toshi MARUYAMA
replace Mailer deliver syntax to Rails3 style...
r9455 Mailer.news_added(news).deliver if Setting.notified_events.include?('news_added')
Eric Davis
Added observers to watch model objects for mail delivery instead of calling Mailer....
r2548 end
end