Module: Djoini::Base::ClassMethods
- Includes:
- Composable
- Defined in:
- lib/djoini/base.rb
Overview
Holds method to specify table
Instance Method Summary collapse
Methods included from Composable
#features, #method_missing, #respond_to_missing?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Djoini::Composable
Instance Method Details
#table_name(table_name) ⇒ Object
22 23 24 25 |
# File 'lib/djoini/base.rb', line 22 def table_name(table_name) features << Relation.new(name: table_name, record_class: self) end |