Module: Undestroyable::Orm::ActiveRecord::Table::ClassMethods
- Defined in:
- lib/undestroyable/orm/active_record/table.rb
Instance Method Summary collapse
Instance Method Details
#undest_arel_table ⇒ Object
36 37 38 |
# File 'lib/undestroyable/orm/active_record/table.rb', line 36 def undest_arel_table @undest_table ||= ::Arel::Table.new(undestr_config[:full_table_name], self) end |
#undest_relation ⇒ Object
40 41 42 |
# File 'lib/undestroyable/orm/active_record/table.rb', line 40 def undest_relation @undest_relation ||= ::ActiveRecord::Relation.new(undest_mirror, undest_arel_table) end |