class Rails::DeprecatedConstant

def self.deprecate(old, current)

def self.deprecate(old, current)
  # double assignment is used to avoid "assigned but unused variable" warning
  constant = constant = new(old, current)
  eval "::#{old} = constant"
end

def target

def target
  ::Kernel.eval @new_const.to_s
end