decidim-proposals/lib/decidim/proposals/admin_engine.rb in decidim-0.0.4 vs decidim-proposals/lib/decidim/proposals/admin_engine.rb in decidim-0.0.5
- old
+ new
@@ -12,9 +12,16 @@
resources :proposal_answers, only: [:edit, :update]
end
root to: "proposals#index"
end
+ initializer "decidim_proposals.inject_abilities_to_user" do |_app|
+ Decidim.configure do |config|
+ config.admin_abilities += ["Decidim::Proposals::Abilities::AdminUser"]
+ config.admin_abilities += ["Decidim::Proposals::Abilities::ProcessAdminUser"]
+ end
+ end
+
def load_seed
nil
end
end
end