Permalink
Browse files

use stringex for parametrization

  • Loading branch information...
1 parent d4f97dc commit d5277135026172965820b6c9d929fc2799c91042 Sergey Kuleshov committed Apr 6, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −2 lib/locomotive/core_ext.rb
  2. +1 −0 locomotive_cms.gemspec
@@ -1,11 +1,11 @@
# encoding: utf-8
## String
-
+require "stringex"
class String #:nodoc
def permalink
- self.parameterize('-')
+ self.to_url
end
def permalink!
View
@@ -60,6 +60,7 @@ Gem::Specification.new do |s|
s.add_dependency 'httparty', '~> 0.8.1'
s.add_dependency 'actionmailer-with-request', '~> 0.3.0'
+ s.add_dependency 'stringex', '~> 1.3.2'
s.add_dependency 'SystemTimer' if RUBY_VERSION =~ /1.8/

0 comments on commit d527713

Please sign in to comment.