Method: ActiveExport.source

Defined in:
lib/active_export.rb

.source(key) ⇒ Object



57
58
59
60
61
62
63
64
# File 'lib/active_export.rb', line 57

def source(key)
  if @configuration.always_reload
    load!(key)
  else
    @sources ||= {}
    @sources[key] ||= load!(key)
  end
end