### Home Classes Methods

### In Files

- app/models/product.rb

### Parent

ActiveRecord::Base

### Methods

- #ensure_not_referenced_by_any_line_item

### Files

- README_FOR_APP

### Class Index

Quicksearch

- AdminController
- AdminHelper
- ApplicationController
- ApplicationHelper
- Cart
- CartsController
- CartsHelper
- LineItem
- LineItemsController
- LineItemsHelper
- Notifier
- Order
- OrdersController
- OrdersHelper
- Product
- ProductsController
- ProductsHelper
- SessionsController
- SessionsHelper
- StoreController
- StoreHelper
- User
- UsersController
- UsersHelper

No matching classes.

# Product

### Private Instance Methods

ensure_not_referenced_by_any_line_item() click to toggle source

ujistí se, že se na tento produkt neodkazují žádné položky

        # File app/models/product.rb, line 18
    18:     def ensure_not_referenced_by_any_line_item

    19:       if line_items.empty?

    20:         return true

    21:       else

    22:         errors.add(:base, 'Existují položky')

    23:         return false

    24:       end

    25:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.