module ActiveScaffold::Tableless::Tableless
Public Instance Methods
Source
# File lib/active_scaffold/tableless.rb, line 31 def skip_statement_cache?(scope) klass < ActiveScaffold::Tableless ? true : super end
Calls superclass method
Source
# File lib/active_scaffold/tableless.rb, line 35 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
Calls superclass method