Module: Jat::Plugins::SimpleApiPreloads
- Defined in:
- lib/jat/plugins/simple_api/plugins/simple_api_preloads/lib/preloads.rb,
lib/jat/plugins/simple_api/plugins/simple_api_preloads/simple_api_preloads.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Classes: Preloads
Class Method Summary
collapse
Class Method Details
.before_load(jat_class, **opts) ⇒ Object
12
13
14
15
16
|
# File 'lib/jat/plugins/simple_api/plugins/simple_api_preloads/simple_api_preloads.rb', line 12
def self.before_load(jat_class, **opts)
raise Error, "Please load :simple_api plugin first" unless jat_class.plugin_used?(:simple_api)
jat_class.plugin :base_preloads, **opts
end
|
.load(jat_class, **_opts) ⇒ Object
18
19
20
21
|
# File 'lib/jat/plugins/simple_api/plugins/simple_api_preloads/simple_api_preloads.rb', line 18
def self.load(jat_class, **_opts)
jat_class.extend(ClassMethods)
jat_class.include(InstanceMethods)
end
|
.plugin_name ⇒ Object
8
9
10
|
# File 'lib/jat/plugins/simple_api/plugins/simple_api_preloads/simple_api_preloads.rb', line 8
def self.plugin_name
:simple_api_preloads
end
|