lib/hydra-head/controller.rb in hydra-head-3.3.0 vs lib/hydra-head/controller.rb in hydra-head-4.0.0.rc2
- old
+ new
@@ -6,25 +6,24 @@
included do
before_filter :method_for_before_filtering
end
- module InstanceMethods
- def method_for_before_filtering
- #puts "Filtering before"
- end
+ def method_for_before_filtering
+ #puts "Filtering before"
+ end
- def method_not_a_filter
- puts "not used as a filter"
- end
+ def method_not_a_filter
+ puts "not used as a filter"
+ end
- def layout_name
- puts " ***** CALLING LAYOUT_NAME ****"
- 'application'
- end
+ def layout_name
+ puts " ***** CALLING LAYOUT_NAME ****"
+ 'application'
end
end
end
+#TODO this seems bad.
::ActionController::Base.send :include, HydraHead::Controller