Class: Redde::Seo

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#skip_basic_validationObject

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_nameObject



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