Sha256: 1c60876a4465702347a0f33344a5d476b1bade7094a5b84eb0adfb742ff6a829
Contents?: true
Size: 802 Bytes
Versions: 1
Compression:
Stored size: 802 Bytes
Contents
module Liquid module Rails class Railtie < ::Rails::Railtie config.app_generators.template_engine :liquid initializer 'liquid4-rails.register_template_handler' do |app| ActiveSupport.on_load(:action_view) do ActionView::Template.register_template_handler(:liquid, Liquid::Rails::TemplateHandler) end end initializer 'liquid4-rails.include_partial' do |app| template_path = ::Rails.root.join('app/views') Liquid::Template.file_system = Liquid::Rails::FileSystem.new(template_path) end initializer 'liquid4-rails.setup_drop' do |app| [:active_record, :mongoid].each do |orm| ActiveSupport.on_load orm do Liquid::Rails.setup_drop self end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
liquid4-rails-0.2.0 | lib/liquid4-rails/railtie.rb |