ruby-hyperloop / hyper-mesh

The project has moved to Hyperstack!! - Synchronization of active record models across multiple clients using Pusher, ActionCable, or Polling
https://hyperstack.org/
MIT License
22 stars 12 forks source link

Inherited scopes are throwing a method missing error #76

Closed adamcreekroad closed 6 years ago

adamcreekroad commented 6 years ago

In the latest lap (27 at the time of writing), inherited scopes are now throwing this error on the client.

class User < ApplicationRecord
  scope :active, -> { where(active: true) }
end

class Admin < User
end

Admin.active
# throws
HyperModel fetching records failed, exception caught when applying ["active"] to db object #<Admin::ActiveRecord_Relation:0x00007fe0ce5dd0e8>: method missing
catmando commented 6 years ago

I think its fixed on the sti branch please chcek ab8637bc2b3a250f1e74544245375cb9806a7442 @adamcreekroad