Skip to content

Commit

Permalink
Define a New_UI feature for local testing
Browse files Browse the repository at this point in the history
We've implemented a New_UI feature in Flipflop in tenejo, but want to
beging implementing UI changes in zizia directly.  This change allows
us to code and test against the feature (disabled or enabled) directly
in the engine.
  • Loading branch information
mark-dce committed Aug 31, 2021
1 parent 7403560 commit dace140
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/features.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# frozen_string_literal: true
Flipflop.configure do
feature :new_ui,
default: false,
description: "Show new UI features and workflows."
end
4 changes: 4 additions & 0 deletions lib/zizia/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ class Engine < ::Rails::Engine
app.config.assets.precompile << %w[zizia/application.js zizia/application.css]
end

initializer "load_features" do
Flipflop::FeatureLoader.current.append(self)
end

initializer :append_migrations do |app|
unless app.root.to_s.match root.to_s
config.paths['db/migrate'].expanded.each do |expanded_path|
Expand Down

0 comments on commit dace140

Please sign in to comment.