Class: SiteMetaTags

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/site_meta_tags.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.default_tagsObject



9
10
11
# File 'app/models/site_meta_tags.rb', line 9

def self.default_tags
  where(identifier: :default).first
end

Instance Method Details

#identifier_textObject



13
14
15
# File 'app/models/site_meta_tags.rb', line 13

def identifier_text
  identifier == 'default' ? 'Тэги по умолчанию' : identifier
end