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
51 52 53 |
# File 'lib/active_scaffold/tableless.rb', line 51 def get_records # rubocop:disable Naming/AccessorMethodName klass < ActiveScaffold::Tableless ? scope.to_a : super end |
#reader ⇒ Object
55 56 57 58 59 60 61 |
# File 'lib/active_scaffold/tableless.rb', line 55 def reader super.tap do |proxy| if klass < ActiveScaffold::Tableless def proxy.exists?(...) = scope.exists?(...) end end end |