Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Defined in:
- lib/active_record-tableless_model.rb
Class Method Summary collapse
-
.no_table ⇒ Object
Declares the current class to have no table You can declare ActiveRecord style attributes using TablelessModel#column.
Class Method Details
.no_table ⇒ Object
Declares the current class to have no table You can declare ActiveRecord style attributes using TablelessModel#column
Usage
class Task < ActiveRecord::Base
no_table
column :description, :text
end
46 47 48 |
# File 'lib/active_record-tableless_model.rb', line 46 def self.no_table include TablelessModel end |