62dfd3b7d5
Load default engines once and setter also set up engine
11 lines
298 B
Ruby
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 |