i76-has_slug 0.1.6 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/README.rdoc +8 -0
  2. metadata +2 -3
@@ -92,6 +92,14 @@ of the record is prepended to the slug.
92
92
  url_for(@post)
93
93
  # => http://example.com/posts/1-first-post
94
94
 
95
+ == Preserving characters
96
+
97
+ Sometimes you'd like to preserve characters. For instance, if you'd like to have
98
+ slugs that look like filenames, you would want to preserve the ".". This is made
99
+ possible by the preserve option:
100
+
101
+ has_slug :filename, :preserve => "."
102
+
95
103
  == Scoped usage
96
104
 
97
105
  Restaurants belong to a city. They have a unique name, but only in the city they
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i76-has_slug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom-Eric Gerritsen
@@ -44,7 +44,6 @@ files:
44
44
  - tasks/has_slug_tasks.rake
45
45
  has_rdoc: true
46
46
  homepage: http://www.i76.nl/
47
- licenses:
48
47
  post_install_message:
49
48
  rdoc_options:
50
49
  - --main
@@ -66,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
65
  requirements: []
67
66
 
68
67
  rubyforge_project:
69
- rubygems_version: 1.3.5
68
+ rubygems_version: 1.2.0
70
69
  signing_key:
71
70
  specification_version: 2
72
71
  summary: A slugging plugin for Ruby on Rails