Sha256: e959098d22df2045c702b6cedf6fbfe8f439d695142b834427a8fb5b217bd0ea
Contents?: true
Size: 584 Bytes
Versions: 6
Compression:
Stored size: 584 Bytes
Contents
if Rails::VERSION::MAJOR > 3 module Comable class Deprecator < ActiveSupport::Deprecation def initialize(deprecation_horizon = '0.4.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
6 entries across 6 versions & 2 rubygems