Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable processing of DSL .deface files #14

Merged
merged 6 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.buildpath
.byebug_history
.metadata/
.project
Gemfile.lock
config/
db/
files/
log/
public/
tmp/

6 changes: 5 additions & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name 'Redmine Base Deface plugin'
author 'Jean-Baptiste BARTH'
description 'This is a plugin for Redmine'
version '1.6.2'
version '5.0.6'
url 'https://github.com/jbbarth/redmine_base_deface'
author_url '[email protected]'
#doesn't work since redmine evaluates dependencies as it loads, and loads in lexical order
Expand All @@ -20,6 +20,10 @@
load File.expand_path(path, __FILE__)
end

Dir.glob("#{Rails.root}/plugins/*/app/overrides/**/*.deface").each do |path|
Deface::DSL::Loader::load File.expand_path(path, __FILE__)
end

Rails.application.config.after_initialize do
require_relative "lib/applicator_patch"
end
Expand Down
Loading