Class: Rich::RichFile

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

Instance Method Summary collapse

Instance Method Details

#set_stylesObject



31
32
33
34
35
36
37
# File 'app/models/rich/rich_file.rb', line 31

def set_styles
  if self.simplified_type=="image"
    Rich.image_styles
  else
    {}
  end
end