Class: Image
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Image
- Defined in:
- app/models/image.rb
Instance Method Summary collapse
Instance Method Details
#assign_title ⇒ Object
33 34 35 |
# File 'app/models/image.rb', line 33 def assign_title self.title = self.asset_file_name if title.blank? end |
#url(style = , include_updated_timestamp = true) ⇒ Object
37 38 39 |
# File 'app/models/image.rb', line 37 def url(style = Radiant::Config['images.default'], = true) self.asset.url(style, ) end |