diff --git a/config/features.rb b/config/features.rb new file mode 100644 index 0000000..18ff18a --- /dev/null +++ b/config/features.rb @@ -0,0 +1,6 @@ +# frozen_string_literal: true +Flipflop.configure do + feature :new_ui, + default: false, + description: "Show new UI features and workflows." +end \ No newline at end of file diff --git a/lib/zizia/engine.rb b/lib/zizia/engine.rb index 97ffb35..807ee25 100644 --- a/lib/zizia/engine.rb +++ b/lib/zizia/engine.rb @@ -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|