repo.or.cz
/
merb_mart.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Updated Rake tasks and test, spec to reflect change in how Merb environments
[merb_mart.git]
/
app
/
models
/
order_status_code.rb
blob
4422e24bef2f6beb369135fd019268d18978fa0f
1
class OrderStatusCode
2
3
include DataMapper::Persistable
4
5
has_many :orders
6
7
property :name, :string, :length => 30, :nullable => false
8
9
# Defines if we can edit this order or not based on the status code
10
def is_editable?
11
case self.id
12
when 1..5
13
return true
14
else
15
return false
16
end
17
end
18
19
end