Skip to content

Commit

Permalink
Make compatible with rails 6+
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcolvar committed Feb 15, 2022
1 parent 75a69a8 commit 0b8f5a8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ jobs:
workflows:
ci:
jobs:
- bundle_lint_test:
name: ruby2-7_rails7-0
ruby_version: 2.7.5
rails_version: 7.0.2.2
- bundle_lint_test:
name: ruby2-7_rails6-1
ruby_version: 2.7.5
rails_version: 6.1.4.6
- bundle_lint_test:
name: ruby2-7_rails6-0
ruby_version: 2.7.5
rails_version: 6.0.4.6
- bundle_lint_test:
name: ruby2-7_rails5-2
ruby_version: 2.7.5
Expand Down
2 changes: 1 addition & 1 deletion active_annotations.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_dependency 'rails', '~> 5.2'
spec.add_dependency 'rails', '>= 5.2', '< 7.1'
spec.add_dependency "json-ld"
spec.add_dependency "rdf-vocab", ">= 2.1.0"
spec.add_development_dependency "bundler"
Expand Down
10 changes: 3 additions & 7 deletions lib/active_annotations/engine.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
if defined?(Rails)
module ActiveAnnotations
class Engine < Rails::Engine
config.autoload_paths += Dir["#{config.root}/app/models/**/"]

engine_name 'active_annotations'
end
module ActiveAnnotations
class Engine < Rails::Engine
engine_name 'active_annotations'
end
end

0 comments on commit 0b8f5a8

Please sign in to comment.