rabl-rails/lib/rabl-rails/railtie.rb
ccocchi 62dfd3b7d5 Fix engines loading.
Load default engines once and setter also set up engine
2012-08-03 15:38:43 +02:00

11 lines
298 B
Ruby

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