module Tableless::SingularAssociation
Public Class Methods
included(base)
click to toggle source
# File lib/active_scaffold/tableless.rb, line 82 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 85 def get_records_with_tableless klass < ActiveScaffold::Tableless ? scope.limit(1).to_a : get_records_without_tableless end