Module: AdaptiveAlias::Hooks::Relation

Included in:
ActiveRecord::Relation
Defined in:
lib/adaptive_alias/hooks/relation.rb

Instance Method Summary collapse

Instance Method Details

#exec_queriesObject



20
21
22
# File 'lib/adaptive_alias/hooks/relation.rb', line 20

def exec_queries(*)
  AdaptiveAlias.rescue_statement_invalid(relation: self){ super }
end

#exists?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/adaptive_alias/hooks/relation.rb', line 12

def exists?(*)
  AdaptiveAlias.rescue_statement_invalid(relation: self){ super }
end

#pluckObject



4
5
6
# File 'lib/adaptive_alias/hooks/relation.rb', line 4

def pluck(*)
  AdaptiveAlias.rescue_statement_invalid(relation: self){ super }
end

#select_allObject



16
17
18
# File 'lib/adaptive_alias/hooks/relation.rb', line 16

def select_all(*)
  AdaptiveAlias.rescue_statement_invalid(relation: self){ super }
end

#update_allObject



8
9
10
# File 'lib/adaptive_alias/hooks/relation.rb', line 8

def update_all(*)
  AdaptiveAlias.rescue_statement_invalid(relation: self){ super }
end