Class: Spree::StockMovement

Inherits:
Base
  • Object
show all
Defined in:
app/models/spree/stock_movement.rb

Constant Summary collapse

QUANTITY_LIMITS =
{
  max: 2**31 - 1,
  min: -2**31
}.freeze

Instance Method Summary collapse

Methods inherited from Base

belongs_to_required_by_default, page, spree_base_scopes

Methods included from Preferences::Preferable

#clear_preferences, #default_preferences, #defined_preferences, #get_preference, #has_preference!, #has_preference?, #preference_default, #preference_type, #set_preference

Instance Method Details

#readonly?Boolean


26
27
28
# File 'app/models/spree/stock_movement.rb', line 26

def readonly?
  persisted?
end