Skip to content

Commit a391a3f

Browse files
authored
feat: support rails 7.2 + version bump (#1)
1 parent 0c21d72 commit a391a3f

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Data shown by using jsoneditor.js from http://jsoneditoronline.org
99

1010
Add this line to your application's Gemfile:
1111

12-
gem 'activeadmin_json_editor', '~> 0.0.10'
12+
gem 'activeadmin_json_editor', '~> 0.0.11'
1313

1414
And then execute:
1515

activeadmin_json_editor.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
1818

1919
spec.required_rubygems_version = '>= 1.3.6'
2020
spec.add_development_dependency 'bundler', '~> 1.5'
21-
spec.add_dependency 'railties', '>= 3.0'
21+
spec.add_dependency 'railties', '>= 7.0'
2222
# spec.add_development_dependency "rake", "~> 0"
2323
# spec.add_dependency "active_admin", "~> 1.0.0"
2424
spec.add_dependency 'ace-rails-ap'

lib/activeadmin/json_editor.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
module ActiveAdmin
66
module JsonEditor
77
class Engine < ::Rails::Engine
8-
config.assets.precompile += %w(img/jsoneditor-icons.png)
8+
initializer "activeadmin_json_editor.assets" do |app|
9+
if app.config.respond_to?(:assets)
10+
app.config.assets.precompile += %w(img/jsoneditor-icons.png)
11+
end
12+
end
913

1014
rake_tasks do
1115
task 'assets:precompile' do
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module ActiveAdmin
22
module JsonEditor
3-
VERSION = '0.0.10'.freeze
3+
VERSION = '0.0.11'.freeze
44
end
55
end

0 commit comments

Comments
 (0)