slugger 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/slugger.rb +1 -1
  3. data/spec/schema.rb +2 -2
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.1.0
data/lib/slugger.rb CHANGED
@@ -7,7 +7,7 @@ module Slugger
7
7
  base.extend(ClassMethods)
8
8
  end
9
9
  module ClassMethods
10
- def acts_as_sluggable(title_column=nil,sluger_options={})
10
+ def has_slug(title_column=nil,sluger_options={})
11
11
  class_inheritable_accessor :sluger_options
12
12
  sluger_options[:title_column] ||= title_column || 'title'
13
13
  # sluger_options[:title_column] ||= 'title'
data/spec/schema.rb CHANGED
@@ -28,11 +28,11 @@ CreateSchema.suppress_messages do
28
28
  end
29
29
 
30
30
  class Post < ActiveRecord::Base
31
- acts_as_sluggable
31
+ has_slug
32
32
  end
33
33
 
34
34
  class User < ActiveRecord::Base
35
- acts_as_sluggable [:first_name, :last_name]
35
+ has_slug [:first_name, :last_name]
36
36
 
37
37
  def name
38
38
  [first_name, last_name].compact.join(' ')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slugger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 0
9
8
  - 1
10
- version: 0.0.1
9
+ - 0
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Seth Faxon