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.6.3 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.6.2 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.6.1 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.6.0 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.4.5 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.5.1 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.4.4 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.4.3 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.4.1 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.4.0 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.4.0.beta lib/redmine_extensions/deprecator.rb
redmine_extensions-0.3.11 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.3.10 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.3.9 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.3.8 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.3.7 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.3.6 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.3.4 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.3.3 lib/redmine_extensions/deprecator.rb
redmine_extensions-0.3.2 lib/redmine_extensions/deprecator.rb