seminar2/custom_gallery/app/models/custom_album_config.rb

10 lines
422 B
Ruby
Raw Normal View History

class CustomAlbumConfig
include Mongoid::Document
include Mongoid::Timestamps
field :module
field :bind_model , :type => String
field :title_field , :type => String , :default => "slug_title"
field :uid_field , :type => String , :default => "uid"
field :custom_record_callback #if exists, it will call 'custom_record_callback(num)'
#where num is 1 when create bulletin, num is -1 when destroy.
end