1
0
Fork 0
forked from OpenNeo/impress
impress/app/models/static_resource.rb

16 lines
181 B
Ruby
Raw Normal View History

class StaticResource
attr_accessor :id, :name
def self.all
@objects
end
def self.find(id)
@objects[id-1]
end
2011-01-27 13:35:46 -08:00
def self.count
@objects.size
end
end