module Tableless::CollectionAssociation
Public Class Methods
included(base)
click to toggle source
# File lib/active_scaffold/tableless.rb, line 73 def self.included(base) base.alias_method_chain :get_records, :tableless if Rails.version >= '4.2' end
Public Instance Methods
get_records_with_tableless()
click to toggle source
# File lib/active_scaffold/tableless.rb, line 76 def get_records_with_tableless klass < ActiveScaffold::Tableless ? scope.to_a : get_records_without_tableless end