mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Fix slugtastic deprecation
This commit is contained in:
parent
92d981c955
commit
5e67d585f9
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user