diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-12 09:42:18 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-12 09:42:18 +0000 |
commit | b5444b5fcd84008a67a5486e373813dec1a371c8 (patch) | |
tree | f58ad67836e17ef31b29004c2d0fb2710845e2b8 /vendor | |
parent | 622b6121f48f0c3579502d2a9fb4975618177cec (diff) | |
download | redmine-b5444b5fcd84008a67a5486e373813dec1a371c8.tar.gz redmine-b5444b5fcd84008a67a5486e373813dec1a371c8.zip |
Fixed: no :author method error on projects atom feed (#1623).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1653 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/plugins/acts_as_event/lib/acts_as_event.rb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/vendor/plugins/acts_as_event/lib/acts_as_event.rb b/vendor/plugins/acts_as_event/lib/acts_as_event.rb index d7f437a5e..0b7ad21f5 100644 --- a/vendor/plugins/acts_as_event/lib/acts_as_event.rb +++ b/vendor/plugins/acts_as_event/lib/acts_as_event.rb @@ -25,14 +25,15 @@ module Redmine module ClassMethods def acts_as_event(options = {}) return if self.included_modules.include?(Redmine::Acts::Event::InstanceMethods) - options[:datetime] ||= :created_on - options[:title] ||= :title - options[:description] ||= :description - options[:author] ||= :author - options[:url] ||= {:controller => 'welcome'} - options[:type] ||= self.name.underscore.dasherize + default_options = { :datetime => :created_on, + :title => :title, + :description => :description, + :author => :author, + :url => {:controller => 'welcome'}, + :type => self.name.underscore.dasherize } + cattr_accessor :event_options - self.event_options = options + self.event_options = default_options.merge(options) send :include, Redmine::Acts::Event::InstanceMethods end end |