Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

add to_key method #61

Open
catmando opened this issue Feb 9, 2018 · 2 comments
Open

add to_key method #61

catmando opened this issue Feb 9, 2018 · 2 comments

Comments

@catmando
Copy link
Contributor

catmando commented Feb 9, 2018

class ActiveRecord::Base 
  def to_key
    backing_record.object_id
  end
end

See ruby-hyperloop/hyper-react#244 for details

@catmando
Copy link
Contributor Author

catmando commented Feb 9, 2018

you would actually add the method to InstanceMethods module

@sfcgeorge
Copy link
Contributor

Can be closed?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants