Sha256: 185faa1220db7f710a7b891a23c721b65134074a38625895e506db02ee64c115

Contents?: true

Size: 1.3 KB

Versions: 1

Compression:

Stored size: 1.3 KB

Contents

require 'active_support/dependencies'
require 'rails_autolink' if defined?(Rails)

module Irwi

  module Formatters
    autoload :BlueCloth, 'irwi/formatters/blue_cloth'
    autoload :RedCloth, 'irwi/formatters/red_cloth'
    autoload :SimpleHtml, 'irwi/formatters/simple_html'
    autoload :WikiCloth, 'irwi/formatters/wiki_cloth'
    autoload :RedCarpet, 'irwi/formatters/red_carpet'
  end

  module Comparators
    autoload :DiffLcs, 'irwi/comparators/diff_lcs'
    autoload :Base, 'irwi/comparators/base'
    module Spans
      autoload :ChangedSpan, 'irwi/comparators/spans/changed_span'
      autoload :NotChangedSpan, 'irwi/comparators/spans/not_changed_span'
    end
  end

  module Extensions; end

  module Paginators
    autoload :None, 'irwi/paginators/none'
    autoload :WillPaginate, 'irwi/paginators/will_paginate'
    # TODO Implement Kaminari paginator
    # TODO Autodetect paginator
  end

  module Support
    autoload :TemplateFinder, 'irwi/support/template_finder'
  end

  def self.config
    require 'irwi/config'

    @@config ||= Irwi::Config.new
  end

end

require 'irwi/extensions/controllers'
require 'irwi/extensions/models'
require 'irwi/support/route_mapper' # Routes
require 'irwi/helpers'

ActionController::Base.append_view_path File.expand_path('../../app/views', __FILE__) # Append default views

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
irwi-0.5.0 lib/irwi.rb