lib/lena/engine.rb in lena-0.0.1 vs lib/lena/engine.rb in lena-0.0.2
- old
+ new
@@ -1,17 +1,17 @@
require 'lena/rails/routing'
module Lena
- class JavaScriptError < Exception; end
+ class ClientError < StandardError; end
class Engine < ::Rails::Engine
isolate_namespace Lena
initializer "lena.assets.precompile" do |app|
app.config.assets.precompile += %w(lena.js)
end
- config.javascript_handler = Proc.new do
- raise JavaScriptError.new
+ config.report_handler = Proc.new do
+ raise ClientError.new
end
end
def self.setup
yield Engine.config