Class: HyperMesh::Connection::QueuedMessage

Inherits:
ActiveRecord::Base show all
Extended by:
AutoCreate
Defined in:
lib/synchromesh/connection.rb

Constant Summary

Constants included from ActiveRecord::ClassMethods

ActiveRecord::ClassMethods::SERVER_METHODS

Instance Attribute Summary

Attributes inherited from ActiveRecord::Base

#acting_user

Attributes included from ActiveRecord::InstanceMethods

#backing_record

Class Method Summary collapse

Methods included from AutoCreate

create_table, needs_init?

Methods inherited from ActiveRecord::Base

#<=>, _synchromesh_scope_args_check, #all, #all=, #all_changed?, #any_changed?, belongs_to, belongs_to_without_reactive_record_add_is_method, #check_permission_with_acting_user, #create, #create_permitted?, #default_scope, #destroy_permitted?, do_not_synchronize, do_not_synchronize?, #do_not_synchronize?, #finder_method, #method_missing, #none_changed?, #only_changed?, #pre_synchromesh_default_scope, #pre_synchromesh_method_missing, pre_synchromesh_scope, public_columns_hash, reflect_on_aggregation, reflect_on_all_aggregations, reflect_on_all_associations, reflect_on_association, #scope, #server_method, #synchromesh_after_change, #synchromesh_after_create, #synchromesh_after_destroy, #unscoped, #update, #update_attribute, #update_permitted?, #view_permitted?

Methods included from ActiveRecord::ClassMethods

#_react_param_conversion, #abstract_class=, #abstract_class?, #all, #all=, #base_class, #column_names, #columns_hash, #composed_of, #define_attribute_methods, #enum, #find, #find_by, #inheritance_column, #inheritance_column=, #method_missing, #model_name, #primary_key, #primary_key=, #scope, #server_method, #server_methods

Methods included from ActiveRecord::InstanceMethods

#==, #attributes, #changed?, #destroy, #destroyed?, #dup, #errors, #id, #id=, #initialize, #itself, #load, #method_missing, #method_missing_warning, #model_name, #new?, #primary_key, #revert, #save, #saving?, #type, #type=

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveRecord::Base

Class Method Details

.root_pathObject



51
52
53
# File 'lib/synchromesh/connection.rb', line 51

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

.root_path=(path) ⇒ Object



47
48
49
# File 'lib/synchromesh/connection.rb', line 47

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