Sha256: 3e73311e327ee70e527a51552df3005e236bc319669cd2fd5e2b23cdb6fa2a4d

Contents?: true

Size: 337 Bytes

Versions: 84

Compression:

Stored size: 337 Bytes

Contents

module RedmineExtensions
  class Deprecator

    def deprecation_warning(method_name, message, caller_backtrace = nil)
      caller_backtrace ||= caller(2)
      message = "#{method_name} is deprecated and will be removed from RedmineExtensions in v1.0"
      ActiveSupport::Deprecation.warn message, caller_backtrace
    end

  end
end

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
redmine_extensions-0.0.13 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.0.12 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.0.10 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.0.8 lib/redmine_extensions/deprecator.rb