app/models/resource.rb
# TODO - generalize this instance-variable reset.
generalize this instance-variable reset.
generalize this instance - variable reset .
def reload
    @@ar_instance_vars ||= Resource.new.instance_variables << :mock_proxy 
    (instance_variables - @@ar_instance_vars).each do |ivar|
      remove_instance_variable(ivar)
    end
    super
  end
def reload @@ar_instance_vars ||= Resource . new . instance_variables << :mock_proxy ( instance_variables - @@ar_instance_vars ) . each do | ivar | remove_instance_variable ( ivar ) end super end
TODO - generalize this instance-variable reset.
TODO - generalize this instance - variable reset .
# For tests