Class: Asset
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Asset
- Defined in:
- app/models/asset.rb
Instance Attribute Summary collapse
-
#attachment_url ⇒ Object
Returns the value of attribute attachment_url.
Instance Method Summary collapse
Instance Attribute Details
#attachment_url ⇒ Object
Returns the value of attribute attachment_url.
8 9 10 |
# File 'app/models/asset.rb', line 8 def @attachment_url end |
Instance Method Details
#image? ⇒ Boolean
32 33 34 |
# File 'app/models/asset.rb', line 32 def image? !( =~ /^image.*/).nil? end |
#to_s ⇒ Object
36 37 38 |
# File 'app/models/asset.rb', line 36 def to_s end |