When accessing associations on records that are subclassed, hyper-mesh only checks the associations on the records base_class
ex code
class User < ActiveRecord::Base
...
end
class Administrator < User
belongs_to :job
...
end
class Job < ActiveRecord::Base
has_one :administrator
def name
@name
end
end
Calling it in JS console.
admin = Opal.Administrator.$last()
> $User {$$id: 3812, backing_record: $Base}
admin.$job().$name()
> undefined method 'name' for {"id"=>1, "name"=>"My First Job"}
When accessing associations on records that are subclassed, hyper-mesh only checks the associations on the records base_class
ex code
Calling it in JS console.