From d822c20d0ef1e1fcbc9c8b398d436e7396d28036 Mon Sep 17 00:00:00 2001 From: Torsten Date: Sat, 10 Dec 2022 18:38:24 +0200 Subject: [PATCH] adding active_hash, moving that way --- Gemfile.lock | 3 +++ config/initializers/active_file.rb | 1 + lib/merged/engine.rb | 2 ++ merged.gemspec | 1 + 4 files changed, 7 insertions(+) create mode 100644 config/initializers/active_file.rb diff --git a/Gemfile.lock b/Gemfile.lock index 535db65..6167757 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,6 +2,7 @@ PATH remote: . specs: merged (0.1.0) + active_hash git haml-rails rails (>= 7.0.4) @@ -55,6 +56,8 @@ GEM erubi (~> 1.4) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.1, >= 1.2.0) + active_hash (3.1.1) + activesupport (>= 5.0.0) activejob (7.0.4) activesupport (= 7.0.4) globalid (>= 0.3.6) diff --git a/config/initializers/active_file.rb b/config/initializers/active_file.rb new file mode 100644 index 0000000..4ad1d39 --- /dev/null +++ b/config/initializers/active_file.rb @@ -0,0 +1 @@ +ActiveFile::Base.set_root_path "config" diff --git a/lib/merged/engine.rb b/lib/merged/engine.rb index 5d7a9af..c5205f5 100644 --- a/lib/merged/engine.rb +++ b/lib/merged/engine.rb @@ -1,3 +1,5 @@ +require "active_hash" + module Merged class Engine < ::Rails::Engine isolate_namespace Merged diff --git a/merged.gemspec b/merged.gemspec index 1d2b861..1bc721c 100644 --- a/merged.gemspec +++ b/merged.gemspec @@ -22,4 +22,5 @@ Gem::Specification.new do |spec| spec.add_dependency "haml-rails" spec.add_dependency "git" spec.add_dependency "redcarpet" + spec.add_dependency "active_hash" end