module ActiveScaffold::Tableless::Tableless
Public Instance Methods
skip_statement_cache?(scope)
click to toggle source
Calls superclass method
# File lib/active_scaffold/tableless.rb, line 35 def skip_statement_cache?(scope) klass < ActiveScaffold::Tableless ? true : super end
target_scope()
click to toggle source
Calls superclass method
# File lib/active_scaffold/tableless.rb, line 39 def target_scope super.tap do |scope| if klass < ActiveScaffold::Tableless class << scope; include RelationExtension; end assoc_conditions = scope.proxy_association&.send(:association_scope)&.conditions if assoc_conditions&.present? scope.conditions.concat(assoc_conditions.map { |c| c.is_a?(Hash) ? c[klass.table_name] || c : c }) end end end end