Class: Withdraw

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/withdraw.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#item_identifierObject

Returns the value of attribute item_identifier.



12
13
14
# File 'app/models/withdraw.rb', line 12

def item_identifier
  @item_identifier
end

Instance Method Details

#check_itemObject



16
17
18
# File 'app/models/withdraw.rb', line 16

def check_item
  errors.add(:item) if item.try(:rent?)
end