Sha256: 0c9cae1c63aeccfc0d03d9b17b94eb5071305153fc06bc7d29abada576bdd226

Contents?: true

Size: 539 Bytes

Versions: 8

Compression:

Stored size: 539 Bytes

Contents

require 'muck-profiles'
require 'rails'

module MuckProfiles
  class Engine < ::Rails::Engine
    
    def muck_name
      'muck-profiles'
    end
    
    initializer 'muck-profiles.helpers' do |app|
      ActiveSupport.on_load(:action_view) do
        include MuckProfilesHelper
      end
    end
    
    initializer 'muck-profiles.i18n' do |app|
      ActiveSupport.on_load(:i18n) do
        I18n.load_path += Dir[ File.join(File.dirname(__FILE__), '..', '..', 'config', 'locales', '*.{rb,yml}') ]
      end
    end
        
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
muck-profiles-3.1.5 lib/muck-profiles/engine.rb
muck-profiles-3.1.4 lib/muck-profiles/engine.rb
muck-profiles-3.1.3 lib/muck-profiles/engine.rb
muck-profiles-3.1.2 lib/muck-profiles/engine.rb
muck-profiles-3.1.1 lib/muck-profiles/engine.rb
muck-profiles-3.1.0 lib/muck-profiles/engine.rb
muck-profiles-3.0.2 lib/muck-profiles/engine.rb
muck-profiles-3.0.1 lib/muck-profiles/engine.rb