Sha256: 42afff3ffe8b1f4d69376cf14e901362200104dc91f43be572900850fca442b4

Contents?: true

Size: 751 Bytes

Versions: 2

Compression:

Stored size: 751 Bytes

Contents

require 'lolita/controllers'

ActiveSupport.on_load(:action_controller) {
  include Lolita::Controllers::UrlHelpers
  include Lolita::Controllers::ComponentHelpers
  include Lolita::Extensions
}
ActiveSupport.on_load(:action_view) {
  include Lolita::Controllers::ComponentHelpers
  include Lolita::Controllers::RailsHelpers
  include Lolita::Extensions
}

module ActionView
  module RoutingUrlFor
    include Lolita::Controllers::UrlHelpers
  end
end

module Lolita
  class Engine < Rails::Engine
    config.lolita = Lolita
    config.i18n.load_path += Dir[File.join(Lolita.root,'config', 'locales','default', '*.{yml}')]
    config.before_initialize do
      Haml.init_rails(binding)
      Haml::Template.options[:format] = :html5
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lolita-4.0.1 lib/lolita/rails/engine.rb
lolita-4.0.0 lib/lolita/rails/engine.rb