Module: WhatsonPost::ShareThis
- Defined in:
- app/models/whatson_post.rb
Constant Summary collapse
- DEFAULT_KEY =
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Class Method Summary collapse
Class Method Details
.enabled? ⇒ Boolean
107 108 109 110 |
# File 'app/models/whatson_post.rb', line 107 def enabled? key = WhatsonPost::ShareThis.key key.present? and key != WhatsonPost::ShareThis::DEFAULT_KEY end |
.key ⇒ Object
101 102 103 104 105 |
# File 'app/models/whatson_post.rb', line 101 def key RefinerySetting.find_or_set(:share_this_key, WhatsonPost::ShareThis::DEFAULT_KEY, { :scoping => 'whatson' }) end |