Module: Ronin::DB::Model

Overview

Mixin for all ronin-db-activerecord models.

Defined Under Namespace

Modules: HasName, HasUniqueName, Importable, LastScannedAt

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Sets the models table_name_prefix to ronin_.

Parameters:

  • model (Class<ActiveRecord::Base>)

    The ActiveRecord model class which is including Ronin::DB::Model.



35
36
37
# File 'lib/ronin/db/model.rb', line 35

def self.included(model)
  model.table_name_prefix = 'ronin_'
end