Class: Resource
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Resource
- 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
-
#is_type_image? ⇒ Boolean
Checking for a image type file.
Instance Method Details
#is_type_image? ⇒ Boolean
Checking for a image type file
35 36 37 |
# File 'app/models/resource.rb', line 35 def is_type_image? image_types.include? self.data_content_type end |