Sha256: 09f9bfad56d10054397608a95909d386645d55db01772a25d83e307281ff6817
Contents?: true
Size: 326 Bytes
Versions: 9
Compression:
Stored size: 326 Bytes
Contents
module Models module Sluggable RSpec.shared_examples "a sluggable" do it { should validate_presence_of(:slug) } it { should validate_uniqueness_of(:slug).case_insensitive } it { should have_db_index(:slug).unique(true) } it { should validate_length_of(:slug).is_at_most(244) } end end end
Version data entries
9 entries across 9 versions & 1 rubygems