Module: Ansr::ArelMethods

Included in:
Base
Defined in:
lib/ansr/relation/arel_methods.rb

Instance Method Summary collapse

Instance Method Details

#arelObject

Returns the Arel object associated with the relation. duplicated to respect access control



5
6
7
# File 'lib/ansr/relation/arel_methods.rb', line 5

def arel # :nodoc:
  @arel ||= build_arel
end

#arel_tableObject



9
10
11
# File 'lib/ansr/relation/arel_methods.rb', line 9

def arel_table
  model().table
end