# Override engine view paths so that this gem's views can override application views Rails::Engine.initializers.detect{|i| i.name == :add_view_paths }. instance_variable_set("@block", Proc.new { views = paths["app/views"].to_a unless views.empty? ActiveSupport.on_load(:action_controller){ append_view_path(views) } ActiveSupport.on_load(:action_mailer){ append_view_path(views) } end } ) module Errbit module Cloudfuji class Engine < Rails::Engine end end end