Module: Baza::DatabaseModelFunctionality

Included in:
Column, Database, Index, Row, Table
Defined in:
lib/baza/database_model_functionality.rb

Overview

Used for link-methods in Rails apps

Instance Method Summary collapse

Instance Method Details

#model_nameObject



7
8
9
# File 'lib/baza/database_model_functionality.rb', line 7

def model_name
  to_model.model_name
end

#to_modelObject



3
4
5
# File 'lib/baza/database_model_functionality.rb', line 3

def to_model
  Baza::DatabaseModel.new(self)
end