lib/tasks/production_pull.rake
def to_local
            returning self.class.local_class.find_or_create_by_id(self.id) do |local|
              self.attributes.each do |key,value|
                local.send(key+'=',value)
              end
            end
          end
# Retuns a local version of the remote object
Retuns a local version of the remote object
Retuns a local version of the remote object
def to_local
            returning self.class.local_class.find_or_create_by_id(self.id) do |local|
              self.attributes.each do |key,value|
                local.send(key+'=',value)
              end
            end
          end
def to_local returning self . class . local_class . find_or_create_by_id ( self . id ) do | local | self . attributes . each do | key , value | local . send ( key + '=' , value ) end end end
Retuns a local version of the remote object
Retuns a local version of the remote object