Class: TemporaryModel::Record

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
lib/temporary_model/record.rb

Class Method Summary collapse

Class Method Details

.define_table(&block) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/temporary_model/record.rb', line 4

def self.define_table(&block)
  if block_given?
    @temporary_table_definition = block
  else
    @temporary_table_definition
  end
end