Skip to content

Commit

Permalink
Align assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Palaniuk committed Sep 15, 2015
1 parent f02a73e commit 3717e5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/slugworth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ module Slugworth
end

class_methods do
def slugged_with(slug_attribute, opts={})
self.slug_attribute = slug_attribute
self.slug_scope = opts.delete(:scope)
def slugged_with(slug_attribute, opts = {})
self.slug_attribute = slug_attribute
self.slug_scope = opts.delete(:scope)
self.slug_incremental = opts.delete(:incremental)
self.slug_updatable = opts.delete(:updatable)
self.slug_updatable = opts.delete(:updatable)
validates_uniqueness_of :slug, scope: slug_scope
end

Expand Down

0 comments on commit 3717e5b

Please sign in to comment.