Class: Cmtool::Image

Inherits:
Object
  • Object
show all
Includes:
Paperclip::Glue, SimplyStored::Couch
Defined in:
app/models/cmtool/image.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.active(*args) ⇒ Object



17
18
19
# File 'app/models/cmtool/image.rb', line 17

def self.active(*args)
  all(*args)
end

Instance Method Details

#clean_nameObject

Return cleaned name, without extension



22
23
24
25
# File 'app/models/cmtool/image.rb', line 22

def clean_name
  return file_file_name
  file_file_name.to_s.sub(/\..*/, '')
end