OSDN Git Service
(root)
/
sharp4k
/
CUTEn.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
119c606ddad86bc1452e0722b2d8a7b2103367c4
[sharp4k/CUTEn.git]
/
CutenServer
/
app
/
models
/
apk.rb
1
class Apk < ActiveRecord::Base
2
belongs_to :task
3
attr_accessible :name, :revision
4
5
include JsonWithoutTimestamps
6
def as_json(options = {})
7
super options.merge({:except => [:task_id]})
8
end
9
10
def store_file(file)
11
FileUtils.cp file.to_path.to_s, "public/apks/#{self.id}.apk"
12
end
13
end