method
deprecated_original_property_getter
v3.2.8 -
Show latest stable
- Class:
ActiveRecord::ModelSchema::ClassMethods
deprecated_original_property_getter(property)private
No documentation available.
# File activerecord/lib/active_record/model_schema.rb, line 355
def deprecated_original_property_getter(property)
ActiveSupport::Deprecation.warn("original_#{property} is deprecated. Define self.#{property} and call super instead.")
if !instance_variable_defined?("@original_#{property}") && respond_to?("reset_#{property}")
send("reset_#{property}")
else
instance_variable_get("@original_#{property}")
end
end