Sha256: cc0493a6a3efa9dedd69a803ac3a7955945e363a83d25a3c88553ca458c70f5b
Contents?: true
Size: 388 Bytes
Versions: 3
Compression:
Stored size: 388 Bytes
Contents
class SiteMetaTags < ActiveRecord::Base self.table_name = 'meta_tags' mount_uploader :image, MetaTagsImageUploader mount_uploader :og_image, MetaTagsImageUploader validates_uniqueness_of :identifier def self.default_tags where(identifier: :default).first end def identifier_text identifier == 'default' ? 'Тэги по умолчанию' : identifier end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coalla-cms-0.5.2.4 | app/models/site_meta_tags.rb |
coalla-cms-0.5.1.9 | app/models/site_meta_tags.rb |
coalla-cms-0.5.1.8 | app/models/site_meta_tags.rb |