raise"#{self.name} can not provide #{event_type} events."ifprovider_options.nil?
raise"#{self.name} can not provide #{event_type} events."ifprovider_options.nil?
scope=self
scope=self
iffrom&&to
scope=scope.scoped(:conditions=>["#{provider_options[:timestamp]} BETWEEN ? AND ?",from,to])
end
ifoptions[:author]
ifoptions[:author]
return[]ifprovider_options[:author_key].nil?
return[]ifprovider_options[:author_key].nil?
@ -93,7 +91,22 @@ module Redmine
ActiveSupport::Deprecation.warn"acts_as_activity_provider with implicit :permission option is deprecated. Add a visible scope to the #{self.name} model or use explicit :permission option."
ActiveSupport::Deprecation.warn"acts_as_activity_provider with implicit :permission option is deprecated. Add a visible scope to the #{self.name} model or use explicit :permission option."