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?, table_exists?

Methods inherited from ActiveRecord::Base

do_not_synchronize, do_not_synchronize?

Class Method Details

.root_pathObject


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

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

.root_path=(path) ⇒ Object


45
46
47
# File 'lib/hyper-operation/transport/connection.rb', line 45

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