Sha256: 0bac5cd8bb9e7866a81958bd2e889ba93d383ace76aec3765f2ad5623a967085

Contents?: true

Size: 150 Bytes

Versions: 18

Compression:

Stored size: 150 Bytes

Contents

class Post < ActiveRecord::Base
  has_friendly_id :title, :use_slug => true
  
  named_scope :published, :conditions => { :published => true }
  
end

Version data entries

18 entries across 18 versions & 7 rubygems

Version Path
nateabbott-friendly_id-2.1.4 test/models/post.rb
nateabbott-friendly_id-2.1.7 test/models/post.rb
nateabbott-friendly_id-2.1.8 test/models/post.rb
nateabbott-nateabbott-friendly_id-2.1.5 test/models/post.rb
nateabbott-nateabbott-friendly_id-2.1.6 test/models/post.rb
norman-friendly_id-2.1.4 test/models/post.rb
nwp-friendly_id-2.1.3 test/models/post.rb
rakutenusa-friendly_id-2.0.8 test/models/post.rb
rakutenusa-friendly_id-2.0.9 test/models/post.rb
friendly_id-2.1.5 test/models/post.rb
friendly_id-2.2.5 test/models/post.rb
friendly_id-2.2.4 test/models/post.rb
friendly_id-2.2.3 test/models/post.rb
friendly_id-2.2.2 test/models/post.rb
nateabbott-friendly-id-2.2.1 test/models/post.rb
friendly_id-2.2.1 test/models/post.rb
friendly_id-2.2.0 test/models/post.rb
friendly_id-2.1.4 test/models/post.rb