Module: BuildingSyncTk::Memoization

Extended by:
ActiveSupport::Concern
Defined in:
lib/building_sync_tk/memoization.rb

Overview

See Also:

  • Isomorphic::Memoization

Instance Method Summary collapse

Instance Method Details

#find_all_with_memo_building_sync_for(*args) ⇒ ActiveSupport::HashWithIndifferentAccess

Find all memoized instances for the given Active Record record by XML attribute name.

Parameters:

  • record (ActiveRecord::Base)

    the Active Record record

  • options (Hash<Symbol, Object>)

    the options

Returns:

  • (ActiveSupport::HashWithIndifferentAccess)

    the memoized instances by XML attribute name

Raises:

  • (Isomorphic::InflectorError)

    if an inflectable term is invalid



46
47
48
# File 'lib/building_sync_tk/memoization.rb', line 46

def find_all_with_memo_building_sync_for(*args)
  find_all_with_memo_isomorphism_for(BuildingSyncTk::Inflector.instance, *args, xmlattrs: BuildingSyncTk::Factory.instance.xmlattrs)
end