Class: WysihatFile

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

Instance Method Summary collapse

Instance Method Details

#image?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'app/models/wysihat_file.rb', line 5

def image?
  !(file_content_type =~ /^image.*/).nil?
end