Module: ActiveRecord::VirtualBase::TablelessClassMethods
- Defined in:
- lib/galaxy/virtual_base.rb
Instance Method Summary collapse
Instance Method Details
#tableless(options = {}) ⇒ Object
121 122 123 124 125 126 127 128 129 130 |
# File 'lib/galaxy/virtual_base.rb', line 121 def tableless( = {} ) include ActiveRecord::VirtualBase::TablelessInstanceMethods self.extend(TablelessMetaMethods) #raise "No columns defined" unless options.has_key?(:columns) && !options[:columns].empty? for column_args in [:columns] column( *column_args ) end end |