mirror of
https://github.com/redmine/redmine.git
synced 2025-11-11 15:56:03 +01:00
Patch by Takashi Kato (user:tohosaku). git-svn-id: https://svn.redmine.org/redmine/trunk@22961 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -61,7 +61,7 @@ module Redmine
|
||||
elsif scope.respond_to?(:call)
|
||||
scope = scope.call
|
||||
else
|
||||
ActiveSupport::Deprecation.warn "acts_as_activity_provider with implicit :scope option is deprecated. Please pass a scope on the #{self.name} as a proc."
|
||||
Rails.application.deprecators[:redmine].warn "acts_as_activity_provider with implicit :scope option is deprecated. Please pass a scope on the #{self.name} as a proc."
|
||||
end
|
||||
|
||||
scope = scope.where("#{provider_options[:timestamp]} >= ?", from) if from
|
||||
@@ -82,7 +82,7 @@ module Redmine
|
||||
elsif respond_to?(:visible)
|
||||
scope = scope.visible(user, options)
|
||||
else
|
||||
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."
|
||||
Rails.application.deprecators[:redmine].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."
|
||||
scope = scope.where(Project.allowed_to_condition(user, "view_#{self.name.underscore.pluralize}".to_sym, options))
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user