Skip to content

Commit

Permalink
Drop support for rails 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Oct 4, 2018
1 parent a43a0b1 commit 5c32a0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion blacklight.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Gem::Specification.new do |s|

s.required_ruby_version = '~> 2.1'

s.add_dependency "rails", "~> 5.0"
s.add_dependency "rails", "~> 5.1"
s.add_dependency "globalid"
s.add_dependency "jbuilder", '~> 2.7'
s.add_dependency "nokogiri", "~>1.6" # XML Parser
Expand Down
6 changes: 1 addition & 5 deletions lib/generators/blacklight/assets_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,11 @@ def assets

# This is not a default in Rails 5.1+
def add_jquery
gem 'jquery-rails' if needs_jquery?
gem 'jquery-rails'
end

private

def needs_jquery?
Rails.version >= '5.1'
end

def turbolinks?
@turbolinks ||= IO.read("app/assets/javascripts/application.js").include?('turbolinks')
end
Expand Down

0 comments on commit 5c32a0c

Please sign in to comment.