Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Commit

Permalink
Delete slugs when object is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
RISCfuture committed Mar 2, 2012
1 parent edfa99b commit b491c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/slugalicious.rb
Expand Up @@ -19,7 +19,7 @@ module Slugalicious

included do
alias_method :to_param, :slug_with_path
has_many :slugs, :as => :sluggable
has_many :slugs, :as => :sluggable, :dependent => :delete_all
end

# Methods added to the class when this module is included.
Expand Down

0 comments on commit b491c92

Please sign in to comment.