Class: Resource

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

Overview

@Name: Admin Resource model @Use: Creating , modifying, deleting images and files for the cms @Created date: 24-07-2012 @Modified Date: 24-07-2012

@Company:  Mindfire Solutions

Instance Method Summary collapse

Instance Method Details

#is_type_image?Boolean

Checking for a image type file

Returns:

  • (Boolean)


35
36
37
# File 'app/models/resource.rb', line 35

def is_type_image?
  image_types.include? self.data_content_type
end