Module: ActiveScaffold::Tableless::TablelessCollectionAssociation
- Defined in:
- lib/active_scaffold/tableless.rb
Instance Method Summary collapse
-
#get_records ⇒ Object
rubocop:disable Naming/AccessorMethodName.
- #reader ⇒ Object
Instance Method Details
#get_records ⇒ Object
rubocop:disable Naming/AccessorMethodName
55 56 57 |
# File 'lib/active_scaffold/tableless.rb', line 55 def get_records # rubocop:disable Naming/AccessorMethodName klass < ActiveScaffold::Tableless ? scope.to_a : super end |
#reader ⇒ Object
59 60 61 62 63 64 65 |
# File 'lib/active_scaffold/tableless.rb', line 59 def reader super.tap do |proxy| if klass < ActiveScaffold::Tableless def proxy.exists?(...) = scope.exists?(...) end end end |