rabl-rails/lib/rabl-fast-json/railtie.rb
2012-03-22 11:24:55 +01:00

9 lines
259 B
Ruby

module RablFastJson
class Railtie < Rails::Railtie
initializer "rabl.initialize" do |app|
ActiveSupport.on_load(:action_view) do
ActionView::Template.register_template_handler :rabl, RablFastJson::Handlers::Rabl
end
end
end
end