Sha256: 150223aa50570eb1ce806bfe898c8b027918e793ca4f69bbca09d91183c96144

Contents?: true

Size: 575 Bytes

Versions: 4

Compression:

Stored size: 575 Bytes

Contents

module UserInterface
  class Engine < Rails::Engine

    initializer 'user_interface.app_controller' do |app|
      ActiveSupport.on_load(:action_controller) do
        require 'user_interface/language_support'
        include UserInterface::LanguageSupport
      end

      config.to_prepare do
        # To use our devise views instead of original ones
        ApplicationController.prepend_view_path File.expand_path("../../../app/views", __FILE__)
        ActionMailer::Base.prepend_view_path File.expand_path("../../../app/views", __FILE__)
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
user_interface-0.0.5 lib/user_interface/engine.rb
user_interface-0.0.4 lib/user_interface/engine.rb
user_interface-0.0.3 lib/user_interface/engine.rb
user_interface-0.0.2 lib/user_interface/engine.rb