Class: Image

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/image.rb

Instance Method Summary collapse

Instance Method Details

#assign_titleObject



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'], include_updated_timestamp = true)
  self.asset.url(style, include_updated_timestamp)
end