Skip to content

Commit

Permalink
Remove unused comma type
Browse files Browse the repository at this point in the history
  • Loading branch information
drapergeek committed Aug 24, 2014
1 parent 13a3b7a commit 5a86bcf
Showing 1 changed file with 15 additions and 28 deletions.
43 changes: 15 additions & 28 deletions app/models/item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,25 @@ def self.search(search)
end
end


def serial=(input)
self[:serial] = input.upcase
end

###CSV DEFINITIONS
def qr_url
QrCode.new(self).url
end

def mark_as_inventoried
self.inventoried_at = Time.now
save(validate: false)
end

def mark_as_surplused
Surpluser.new(self).surplus

save(validate: false)
end

comma do
name
inventoried_at
Expand All @@ -67,30 +80,4 @@ def serial=(input)
operating_system_name
type_of_item
end

#this is a list of what security wants for their audit
comma :sec_review do
ips "IP"
name
operating_system
type_of_item
critical
end

###END CSV DEFINITIONS

def qr_url
QrCode.new(self).url
end

def mark_as_inventoried
self.inventoried_at = Time.now
save(validate: false)
end

def mark_as_surplused
Surpluser.new(self).surplus

save(validate: false)
end
end

0 comments on commit 5a86bcf

Please sign in to comment.