Class: Image
- Defined in:
- app/models/file_asset.rb
Instance Method Summary collapse
Methods inherited from FileAsset
acceptable?, adjust_image, all_valid_extensions, apply_filters, #basename, #check_name_uniqueness, #copy, #extname, #fully_qualified_url, #get_contents, #initialize, #is_secured?, #move, #path, #save_dimensions, scope_by_dba_organization, scope_by_party, #set_content_type, #set_data_file_name, #set_sti, split_path, #to_data_hash, #to_s, #trim_name, type_by_extension, type_for, #url, valid_extensions, validate_extension
Constructor Details
This class inherits a constructor from FileAsset
Instance Method Details
#thumbnail_src ⇒ Object
400 401 402 403 404 405 406 407 408 |
# File 'app/models/file_asset.rb', line 400 def thumbnail_src thumbnail_image = FileAsset.where("data_file_name = ? and directory like '%thumbnail%' and id = ?", self.name, self.id).first if thumbnail_image thumbnail_image.fully_qualified_url else self.fully_qualified_url end end |