Sha256: 625d8d3614d5bbc0d9df8845f9f839b454af47f1a36d17e0cec43e5b633d05b9
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
class Setting < ActiveRecord::Base attr_accessible :activated, :key, :name, :system, :value, :image, :image_cache mount_uploader :image, Settings::ImageUploader def self.app_title begin Setting.where(key: 'app_title', activated: true).first.value rescue false end end def self.app_email begin Setting.where(key: 'app_email', activated: true).first.value rescue false end end def self.admix_logo begin Setting.where(key: 'admix_logo', activated: true).first rescue false end end def self.link_twitter begin Setting.where(key: 'link_twitter', activated: true).first.value rescue false end end def self.link_facebook begin Setting.where(key: 'link_facebook', activated: true).first.value rescue false end end def self.albums_watermark begin Setting.where(key: 'albums_watermark', activated: true).first rescue false end end def self.albums_title begin Setting.where(key: 'albums_title', activated: true).first.value rescue false end end end
Version data entries
4 entries across 4 versions & 2 rubygems