Class: Redde::Seo
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Redde::Seo
- Defined in:
- app/models/redde/seo.rb
Instance Attribute Summary collapse
-
#skip_basic_validation ⇒ Object
Returns the value of attribute skip_basic_validation.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#skip_basic_validation ⇒ Object
Returns the value of attribute skip_basic_validation.
4 5 6 |
# File 'app/models/redde/seo.rb', line 4 def skip_basic_validation @skip_basic_validation end |
Class Method Details
.model_name ⇒ Object
22 23 24 |
# File 'app/models/redde/seo.rb', line 22 def self.model_name ActiveModel::Name.new(self, nil, 'Seo') end |
Instance Method Details
#empty? ⇒ Boolean
18 19 20 |
# File 'app/models/redde/seo.rb', line 18 def empty? !(title.present? && keywords.present? && description.present?) end |