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.1.23 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.1.21 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.1.20 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.0.39 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.1.19 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.1.18 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.1.17 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.1.16 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.1.15 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.1.14 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.0.38 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.1.13 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.0.37 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.1.11 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.1.10 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.0.36 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.0.34 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.1.09 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.1.07 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.1.06 lib/redmine_extensions/deprecator.rb