Sha256: 17a5b33e3a9617e8c01633ad90b3b26ebeac7454d779483fe7469a6060c0afb5

Contents?: true

Size: 399 Bytes

Versions: 2

Compression:

Stored size: 399 Bytes

Contents

# == Schema Information
#
# Table name: pages
#
#  id         :integer          not null, primary key
#  name       :string(255)
#  permalink  :string(255)
#  site_id    :integer
#  created_at :datetime
#  updated_at :datetime
#

class Page < ActiveRecord::Base

  belongs_to :site

  has_superslug :name, :permalink, :separator => '_', :force_update => true,
                :context => :site

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
superslug-1.3.1 test/app/models/page.rb
superslug-1.3.0 test/app/models/page.rb