Sha256: 4e1c34b65d5ff9f41764965560e191c34815483d6184294d3de26be75659efc1

Contents?: true

Size: 197 Bytes

Versions: 8

Compression:

Stored size: 197 Bytes

Contents

class DynamicSeo < ActiveRecord::Base

  belongs_to :seoable, polymorphic: true
  validates_presence_of   :seoable_type, :seoable_id
  validates_uniqueness_of :seoable_id, scope: :seoable_type
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fi_seo-0.1.7 lib/acts_as_seoable/dynamic_seo.rb
fi_seo-0.1.6 lib/acts_as_seoable/dynamic_seo.rb
fi_seo-0.1.5 lib/acts_as_seoable/dynamic_seo.rb
fi_seo-0.1.4 lib/acts_as_seoable/dynamic_seo.rb
fi_seo-0.1.3 lib/acts_as_seoable/dynamic_seo.rb
fi_seo-0.1.2 lib/acts_as_seoable/dynamic_seo.rb
fi_seo-0.1.1 lib/acts_as_seoable/dynamic_seo.rb
fi_seo-0.1.0 lib/acts_as_seoable/dynamic_seo.rb