Class: Hyperloop::Connection::QueuedMessage

Inherits:
ActiveRecord::Base show all
Extended by:
AutoCreate
Defined in:
lib/hyper-operation/transport/connection.rb

Class Method Summary collapse

Methods included from AutoCreate

create_table, needs_init?

Methods inherited from ActiveRecord::Base

do_not_synchronize, do_not_synchronize?

Class Method Details

.root_pathObject



52
53
54
# File 'lib/hyper-operation/transport/connection.rb', line 52

def self.root_path
  unscoped.find_or_create_by(connection_id: 0).data
end

.root_path=(path) ⇒ Object



48
49
50
# File 'lib/hyper-operation/transport/connection.rb', line 48

def self.root_path=(path)
  unscoped.find_or_create_by(connection_id: 0).update(data: path)
end