Sha256: 70956496a68b92681171a89141f13ce5874d25c6fd753ae1ea11196ad71423f5

Contents?: true

Size: 273 Bytes

Versions: 66

Compression:

Stored size: 273 Bytes

Contents

class Meta < ApplicationRecord
  include Concerns::Locale

  belongs_to :sluggable, polymorphic: true, touch: true

  validates :locale, presence: true

  %w(title keywords description custom slug).each do |field|
    alias_attribute "seo_#{field}".to_sym, field
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
udongo-7.9.0 app/models/meta.rb
udongo-7.8.1 app/models/meta.rb
udongo-7.8.0 app/models/meta.rb
udongo-7.7.2 app/models/meta.rb
udongo-7.7.1 app/models/meta.rb
udongo-7.7.0 app/models/meta.rb
udongo-7.6.2 app/models/meta.rb
udongo-7.6.1 app/models/meta.rb
udongo-7.6.0 app/models/meta.rb
udongo-7.5.1 app/models/meta.rb
udongo-7.5.0 app/models/meta.rb
udongo-7.4.2 app/models/meta.rb
udongo-7.4.1 app/models/meta.rb
udongo-7.4.0 app/models/meta.rb
udongo-7.3.5 app/models/meta.rb
udongo-7.3.4 app/models/meta.rb
udongo-7.3.3 app/models/meta.rb
udongo-7.3.2 app/models/meta.rb
udongo-7.3.1 app/models/meta.rb
udongo-7.2.1 app/models/meta.rb