Skip to content

Commit

Permalink
use stringex for parametrization
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Kuleshov committed Apr 6, 2012
1 parent d4f97dc commit d527713
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/locomotive/core_ext.rb
@@ -1,11 +1,11 @@
# encoding: utf-8

## String

require "stringex"
class String #:nodoc

def permalink
self.parameterize('-')
self.to_url
end

def permalink!
Expand Down
1 change: 1 addition & 0 deletions locomotive_cms.gemspec
Expand Up @@ -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/

Expand Down

0 comments on commit d527713

Please sign in to comment.