Skip to content

Commit

Permalink
remove method of limited utility
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanensari committed Jun 10, 2011
1 parent 6718029 commit 8f3d8a7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/mongoid/slug.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,6 @@ def self.find_by_#{slug_name}!(slug)
end
end

# Regenerates slug.
#
# Should come in handy when generating slugs for an existing collection.
def slug!
generate_slug!
save
end

# Returns the slug.
def to_param
read_attribute(slug_name)
Expand Down

0 comments on commit 8f3d8a7

Please sign in to comment.