Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove ApplicationHelper's file to prevent it from getting cached in …

…Refinery::Core::Engine.helpers and thus stop picking any changes made to the application_helper.rb located in the main app.
  • Loading branch information...
commit 0f16e538f6671561f4bdc1f276f68de66dd1daa0 1 parent 153d9b4
@thedarkone thedarkone authored ugisozols committed
View
1  core/app/controllers/refinery/admin_controller.rb
@@ -3,6 +3,7 @@
module Refinery
class AdminController < ::ActionController::Base
include ::Refinery::ApplicationController
+ helper ApplicationHelper
helper Refinery::Core::Engine.helpers
include Refinery::Admin::BaseController
View
5 core/app/helpers/application_helper.rb
@@ -1,5 +0,0 @@
-# Methods added to this helper will be available to all templates in the application.
-
-module ::ApplicationHelper
-
-end
View
8 core/spec/lib/refinery/core_spec.rb
@@ -173,4 +173,12 @@
end
end
end
+
+ describe Refinery::Core::Engine do
+ describe "#helpers" do
+ it "should not include ApplicationHelper" do
+ Refinery::Core::Engine.helpers.ancestors.map(&:name).should_not include("ApplicationHelper")
+ end
+ end
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.