Module: AutoPreload
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/auto_preload.rb,
lib/auto_preload/config.rb,
lib/auto_preload/version.rb,
lib/auto_preload/adapters.rb,
lib/auto_preload/resolver.rb,
lib/auto_preload/active_record.rb,
lib/auto_preload/adapters/serializer.rb,
lib/auto_preload/adapters/active_record.rb
Overview
Provides methods to run ‘preload`/`includes`/`eager_load` on your model from a JSON::API include string.
Defined Under Namespace
Modules: ActiveRecord, Adapters Classes: Config, Resolver
Constant Summary collapse
- VERSION =
Returns The version of the gem.
"0.1.2"
Class Method Summary collapse
Class Method Details
.config ⇒ AutoPreload::Config
23 24 25 |
# File 'lib/auto_preload.rb', line 23 def self.config @config ||= Config.new end |
.configure {|AutoPreload::Config| ... } ⇒ AutoPreload::Config
18 19 20 |
# File 'lib/auto_preload.rb', line 18 def self.configure yield(config) end |