Sha256: 27a0b30d7789971a6cc5a17044a876f238cfa12d4927ce156f28b72ccadd11bc

Contents?: true

Size: 352 Bytes

Versions: 2

Compression:

Stored size: 352 Bytes

Contents

require 'action_controller'
require 'loaf/configuration'

module Loaf
  if defined? Rails::Railtie
    require 'loaf/railtie'
  else
    autoload :Filters, 'loaf/filters'
    autoload :Helpers, 'loaf/helpers'

    ::ActionController::Base.send :include, Loaf::Filters
    ::ActionController::Base.helper Loaf::Helpers
  end

  extend Configuration
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
loaf-0.1.1 lib/loaf.rb
loaf-0.1.0 lib/loaf.rb