hyper-mesh icon indicating copy to clipboard operation
hyper-mesh copied to clipboard

add to_key method

Open catmando opened this issue 7 years ago • 2 comments

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

See https://github.com/ruby-hyperloop/hyper-react/issues/244 for details

catmando avatar Feb 09 '18 21:02 catmando

you would actually add the method to InstanceMethods module

catmando avatar Feb 09 '18 22:02 catmando

Can be closed?

sfcgeorge avatar Jun 27 '18 10:06 sfcgeorge