Class: Pack
Instance Attribute Summary
Attributes inherited from Product
#price_variation, #price_variation_id, #special_offer_discount, #special_offer_discount_price, #voucher_discount, #voucher_discount_price
Instance Method Summary collapse
Methods inherited from Product
#activate, #attribute_of, #discount, get_offer_month, get_on_first_page, #has_discount?, #has_special_offers?, #method_missing, #old_price, #packaging_price, #price, #price_to_s, #redirection_product_with_deleted, #respond_to?, #soft_delete, #synchronize_stock, #tax
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Product
Instance Method Details
#clone ⇒ Object
4 5 6 7 8 |
# File 'app/models/pack.rb', line 4 def clone pack = super pack.product_ids = product_ids pack end |