Class: Serega::SeregaPlugins::Preloads::CheckOptPreload
- Inherits:
-
Object
- Object
- Serega::SeregaPlugins::Preloads::CheckOptPreload
- Defined in:
- lib/serega/plugins/preloads/validations/check_opt_preload.rb
Class Method Summary collapse
Class Method Details
.call(opts) ⇒ Object
8 9 10 11 12 |
# File 'lib/serega/plugins/preloads/validations/check_opt_preload.rb', line 8 def call(opts) return unless opts.key?(:preload) raise SeregaError, "Option :preload can not be used together with option :const" if opts.key?(:const) end |