Sha256: 91b2bc021bcdc78eba3838d0ebfe11ff1bcff6e483231a1bb159e0aa3fa78353
Contents?: true
Size: 584 Bytes
Versions: 4
Compression:
Stored size: 584 Bytes
Contents
if Rails::VERSION::MAJOR > 3 module Comable class Deprecator < ActiveSupport::Deprecation def initialize(deprecation_horizon = '0.8.0', gem_name = 'Comable') super end end end else # TODO: Deprecated itself! module Comable class Deprecator include Singleton end end class Module def deprecate_with_deprecator(*method_names) options = method_names.extract_options! options.delete(:deprecator) if options.present? deprecate_without_deprecator end alias_method_chain :deprecate, :deprecator end end
Version data entries
4 entries across 4 versions & 1 rubygems