Sha256: 568c2561d228789ecbf259ef2f7d6ddb3e8c8bbeb4d46828a15752967af99bf5

Contents?: true

Size: 616 Bytes

Versions: 2

Compression:

Stored size: 616 Bytes

Contents

require 'acts_as_list'
require 'app_parser'
require 'pundit'

require 'distribuo/engine'
require 'distribuo/configuration'
require 'distribuo/active_record_helpers'

module Distribuo
  class Error < StandardError; end

  class << self
    attr_reader :config

    def setup
      @config = Configuration.new
      yield config
    end

    def i18n_store
      @i18n_store ||= Scribo::I18nStore.new
    end

    def logger
      @config.logger
    end
  end

  # Include helpers
  ActiveSupport.on_load(:active_record) do
    include ActiveRecordHelpers
    Mime::Type.register 'application/plist', :plist
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
distribuo-0.1.16 lib/distribuo.rb
distribuo-0.1.8 lib/distribuo.rb