Module: IOPromise::ViewComponent::DataLoader

Includes:
DataLoader
Defined in:
lib/iopromise/view_component/data_loader.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from DataLoader

#async_attributes, #sync

Class Method Details

.included(base) ⇒ Object



11
12
13
# File 'lib/iopromise/view_component/data_loader.rb', line 11

def self.included(base)
  base.extend(::IOPromise::DataLoader::ClassMethods)
end

Instance Method Details

#render_inObject



15
16
17
18
# File 'lib/iopromise/view_component/data_loader.rb', line 15

def render_in(*)
  sync
  super
end