Module: DerGuteMoritz::ActiveRecord::LazyAttributes::JoinBase
- Defined in:
- lib/lazy_attributes.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
65 66 67 |
# File 'lib/lazy_attributes.rb', line 65 def self.included(base) base.send :alias_method_chain, :column_names, :lazy_attributes end |
Instance Method Details
#column_names_with_lazy_attributes ⇒ Object
69 70 71 72 73 74 75 |
# File 'lib/lazy_attributes.rb', line 69 def column_names_with_lazy_attributes if active_record.lazy_attributes.empty? column_names_without_lazy_attributes else active_record.eager_attributes end end |