@ -99,3 +99,21 @@ class Redmine::MenuManager::Mapper
end
end
end
end
end
end
classRedmine::MenuManager::MapDeferrer
definitialize(menu_builder_queue)
@menu_builder_queue=menu_builder_queue
end
defdefer(method,*args)
ActiveSupport::Deprecation.warn"Calling #{method.to_s} and accessing the the menu object from outside of the block attached to the map method is deprecated and will be removed in ChiliProject 3.0. Please access the menu object from within the attached block instead. Please also note the differences between the APIs.",caller.drop(1)