Class: Photo

Inherits:
Object
  • Object
show all
Includes:
Ish::Utils, Mongoid::Document, Mongoid::Paperclip, Mongoid::Timestamps
Defined in:
lib/photo.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Ish::Utils

#export

Class Method Details



52
53
54
# File 'lib/photo.rb', line 52

def self.n_per_manager_gallery
  25
end

Instance Method Details

#export_fieldsObject



56
57
58
59
60
61
62
63
# File 'lib/photo.rb', line 56

def export_fields
  %w|
    gallery_id
    name descr weight is_public is_trash

    photo_file_name photo_content_type photo_file_size photo_updated_at photo_fingerprint
  |
end

#userObject



13
14
15
# File 'lib/photo.rb', line 13

def user
  
end