Class: SpResource
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- SpResource
- Defined in:
- app/models/sp_resource.rb
Overview
This class describes a special resource on mini map.
Instance Method Summary (collapse)
-
- (String) img_file
Return the image file name which is created from symbol and prefix.
Instance Method Details
- (String) img_file
Return the image file name which is created from symbol and prefix. File extension is added on erb of views.
15 16 17 |
# File 'app/models/sp_resource.rb', line 15 def img_file return "resource_" + symbol.to_s end |