Module: SolidusPrototypes::ProductsLoaderConcern

Extended by:
ActiveSupport::Concern
Defined in:
app/concerns/solidus_prototypes/products_loader_concern.rb

Instance Method Summary collapse

Instance Method Details

#load_prototypeObject



9
10
11
12
13
# File 'app/concerns/solidus_prototypes/products_loader_concern.rb', line 9

def load_prototype
  resource = :product
  return if params[resource][:prototype_id].blank?
  @prototype = Spree::Prototype.find(params[resource][:prototype_id])
end