Module: Baza::DatabaseModelFunctionality
- Defined in:
- lib/baza/database_model_functionality.rb
Overview
Used for link-methods in Rails apps
Instance Method Summary collapse
Instance Method Details
#model_name ⇒ Object
7 8 9 |
# File 'lib/baza/database_model_functionality.rb', line 7 def model_name to_model.model_name end |
#to_model ⇒ Object
3 4 5 |
# File 'lib/baza/database_model_functionality.rb', line 3 def to_model Baza::DatabaseModel.new(self) end |