Skip to content

Commit

Permalink
Merge pull request #122 from Shopify/minimum-ruby-version
Browse files Browse the repository at this point in the history
Add minimum Ruby version
  • Loading branch information
Mathew Allen authored Sep 23, 2016
2 parents 01415a5 + a550d77 commit 5de6be1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/turbograft.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ def referer
end

ActiveSupport.on_load(:action_view) do
(ActionView::RoutingUrlFor rescue ActionView::Helpers::UrlHelper).module_eval do
prepend XHRUrlFor
end
end unless RUBY_VERSION =~ /^1\.8/
(ActionView::RoutingUrlFor rescue ActionView::Helpers::UrlHelper).prepend(XHRUrlFor)
end
end
end
end
2 changes: 2 additions & 0 deletions turbograft.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.required_ruby_version = '~> 2.1'

spec.add_dependency "coffee-rails"

spec.add_development_dependency "bundler"
Expand Down

0 comments on commit 5de6be1

Please sign in to comment.