Sha256: 35665162d89dc6e1b836181e5b04a6c9f646cb2cc147bda02c1fd72ddfe50821

Contents?: true

Size: 753 Bytes

Versions: 1

Compression:

Stored size: 753 Bytes

Contents

require 'loaf/configuration'
require 'loaf/errors'
require 'loaf/railtie'
require 'loaf/crumb'
require 'loaf/builder'
require 'loaf/translation'
require 'loaf/controller_extensions'
require 'loaf/view_extensions'
require 'loaf/crumb_formatter'
require 'loaf/options_validator'

# Add English load path by default
I18n.load_path << File.join(File.dirname(__FILE__), 'config', 'locales', 'en.yml')

module Loaf
  extend Configuration

  if defined? Rails::Railtie
    require 'loaf/railtie'
  else
    autoload :ControllerExtensions, 'loaf/controller_extensions'
    autoload :Helpers, 'loaf/view_extensions'

    ::ActionController::Base.send :include, Loaf::ControllerExtensions
    ::ActionController::Base.helper Loaf::ViewExtensions
  end
end # Loaf

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
loaf-0.3.0 lib/loaf.rb