aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2016-07-03 15:01:51 +0200
committerHarald Eilertsen <haraldei@anduin.net>2016-07-03 15:01:51 +0200
commit6b196003cf968a8ec9670e217478e99d42b6840c (patch)
tree335d0bca9ec62ddfa1f76241916b75313d1b8d75
parent1277f7634650f9525d8ffea679c47a15833cbc87 (diff)
downloadrefinerycms-pc_banners-6b196003cf968a8ec9670e217478e99d42b6840c.tar.gz
refinerycms-pc_banners-6b196003cf968a8ec9670e217478e99d42b6840c.tar.bz2
refinerycms-pc_banners-6b196003cf968a8ec9670e217478e99d42b6840c.zip
Fix deprecation warning in engine registration.
The activity plugin has been removed, so just drop the config for it.
-rw-r--r--lib/refinery/banners/engine.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/refinery/banners/engine.rb b/lib/refinery/banners/engine.rb
index 0299bb8..dea4ef3 100644
--- a/lib/refinery/banners/engine.rb
+++ b/lib/refinery/banners/engine.rb
@@ -6,16 +6,11 @@ module Refinery
engine_name :refinery_banners
- initializer "register refinerycms_banners plugin" do
+ before_inclusion do
Refinery::Plugin.register do |plugin|
plugin.name = "banners"
plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.banners_admin_banners_path }
plugin.pathname = root
- plugin.activity = {
- :class_name => :'refinery/banners/banner',
- :title => 'name'
- }
-
end
end