1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

Fix slugtastic deprecation

This commit is contained in:
Daniel Barber 2016-04-20 11:20:26 +01:00
parent 92d981c955
commit 5e67d585f9
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -3,7 +3,7 @@ class Category < ActiveRecord::Base
validates_presence_of :name, :slug
validates_uniqueness_of :name, :slug
has_slug :slug, from: :name
slug :slug, from: :name
def to_s
name