Module: Slugifiable::ClassMethods
- Included in:
- User
- Defined in:
- app/models/concerns/slugifiable.rb
Instance Method Summary collapse
Instance Method Details
#find_by_slug(slug) ⇒ Object
9 10 11 |
# File 'app/models/concerns/slugifiable.rb', line 9 def find_by_slug(slug) self.all.find {|instance| instance.slug == slug} end |