Class: Setting
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Setting
- Defined in:
- app/models/setting.rb
Class Method Summary collapse
- .admix_logo ⇒ Object
- .albums_title ⇒ Object
- .albums_watermark ⇒ Object
- .app_email ⇒ Object
- .app_title ⇒ Object
- .link_facebook ⇒ Object
- .link_instagram ⇒ Object
- .link_twitter ⇒ Object
Class Method Details
.admix_logo ⇒ Object
22 23 24 25 26 27 28 |
# File 'app/models/setting.rb', line 22 def self.admix_logo begin Setting.where(key: 'admix_logo', activated: true).first rescue false end end |
.albums_title ⇒ Object
62 63 64 65 66 67 68 |
# File 'app/models/setting.rb', line 62 def self.albums_title begin Setting.where(key: 'albums_title', activated: true).first.value rescue false end end |
.albums_watermark ⇒ Object
54 55 56 57 58 59 60 |
# File 'app/models/setting.rb', line 54 def self.albums_watermark begin Setting.where(key: 'albums_watermark', activated: true).first rescue false end end |
.app_email ⇒ Object
14 15 16 17 18 19 20 |
# File 'app/models/setting.rb', line 14 def self.app_email begin Setting.where(key: 'app_email', activated: true).first.value rescue false end end |
.app_title ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/models/setting.rb', line 6 def self.app_title begin Setting.where(key: 'app_title', activated: true).first.value rescue false end end |
.link_facebook ⇒ Object
38 39 40 41 42 43 44 |
# File 'app/models/setting.rb', line 38 def self.link_facebook begin Setting.where(key: 'link_facebook', activated: true).first.value rescue false end end |
.link_instagram ⇒ Object
46 47 48 49 50 51 52 |
# File 'app/models/setting.rb', line 46 def self.link_instagram begin Setting.where(key: 'link_instagram', activated: true).first.value rescue false end end |
.link_twitter ⇒ Object
30 31 32 33 34 35 36 |
# File 'app/models/setting.rb', line 30 def self.link_twitter begin Setting.where(key: 'link_twitter', activated: true).first.value rescue false end end |