Sha256: 01f89860ff50f49496bdd10a9c8bdb4149441b1fef456da67ef283bd30137e19
Contents?: true
Size: 424 Bytes
Versions: 3
Compression:
Stored size: 424 Bytes
Contents
module Workarea class Sitemap include Mongoid::Document include Mongoid::Timestamps extend Dragonfly::Model field :file_uid, type: String field :index, type: String dragonfly_accessor :file, app: :workarea def self.find_or_initialize_by_index(index) find_by_index(index) || new(index: index) end def self.find_by_index(index) where(index: index).first end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
workarea-sitemaps-2.1.8 | app/models/workarea/sitemap.rb |
workarea-sitemaps-2.1.7 | app/models/workarea/sitemap.rb |
workarea-sitemaps-2.1.6 | app/models/workarea/sitemap.rb |