-
Notifications
You must be signed in to change notification settings - Fork 0
A tiny ActiveRecord plugin for callname/slug generation.
License
mikezter/has_callname
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
HasCallname =========== Ultra Simple! Generates a callname slug out of a given string attribute. Adds finder which raise RecordNotFound or returns one Instance. Takes care of unique callnames by adding numbers as needed. Example ======= has_callname # expects :name => :name, :callname => :callname has_callname :name => :product_name, :callname => :product_url_slug has_callname :slug # same as :name => :slug, :callname => :slug has_callname :gsubs => {'foo' => 'bar'}, :filters => 'sex' has_callname :prefix => 'cool-', :suffix => '-of-the-year' Copyright (c) 2009 Michael Strüder, released under the MIT license
About
A tiny ActiveRecord plugin for callname/slug generation.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published