From dcd5bedc6d1c439cfb6a2b67db2ad55d61291b88 Mon Sep 17 00:00:00 2001 From: Adrian Marin Date: Tue, 18 Aug 2020 21:53:29 +0300 Subject: [PATCH 1/2] fix: init app on rails load (#116) --- lib/avo/engine.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/avo/engine.rb b/lib/avo/engine.rb index 7d1381126f..1b81eab4af 100644 --- a/lib/avo/engine.rb +++ b/lib/avo/engine.rb @@ -36,6 +36,8 @@ class Engine < ::Rails::Engine if Rails.env.production? Dir.glob(avo_root_path + '/lib/avo/app/**/*.rb'.to_s).each { |c| load(c) } + + Avo::App.init end end From a6720f23fc1926df7db502fba4e1ec739a04c6dc Mon Sep 17 00:00:00 2001 From: Adrian Marin Date: Tue, 18 Aug 2020 21:55:11 +0300 Subject: [PATCH 2/2] refactor: tweak build (#117) --- avo.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avo.gemspec b/avo.gemspec index 5fc1f371c3..799a4e0ee2 100644 --- a/avo.gemspec +++ b/avo.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |spec| 'public gem pushes.' end - spec.files = Dir['{bin,app,config,db,lib,public}/**/*', 'MIT-LICENSE', 'Rakefile', 'README.md', 'avo.gemspec', 'Gemfile', 'Gemfile.lock'] + spec.files = Dir['{bin,app,config,db,lib,public}/**/*', 'MIT-LICENSE', 'Rakefile', 'README.md', 'avo.gemspec', 'Gemfile', 'Gemfile.lock'].reject { |file| file.start_with? 'app/frontend' } spec.add_dependency 'rails', '~> 6.0.2', '>= 6.0.2.1' spec.add_dependency 'kaminari'