Module: Tramp::Finders

Included in:
Base
Defined in:
lib/tramp/finders.rb

Instance Method Summary collapse

Instance Method Details

#[](attribute) ⇒ Object



6
7
8
# File 'lib/tramp/finders.rb', line 6

def [](attribute)
  arel_table[attribute]
end

#arel_tableObject



10
11
12
# File 'lib/tramp/finders.rb', line 10

def arel_table
  @arel_table ||= Arel::Table.new(table_name)
end

#relationObject



14
15
16
# File 'lib/tramp/finders.rb', line 14

def relation
  Relation.new(self, arel_table)
end