Class: Construction
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Construction
- Defined in:
- app/models/construction.rb
Overview
This class describes a construction 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.
16 17 18 |
# File 'app/models/construction.rb', line 16 def img_file return "const_" + symbol.to_s end |