appirits/comable

View on GitHub
core/lib/comable/core.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'devise'
require 'enumerize'
require 'state_machine'
require 'ancestry'
require 'acts_as_list'
require 'carrierwave'
require 'cancancan'
require 'comma'
require 'axlsx_rails'
require 'roo'
require 'liquid'
require 'liquid-rails'
require 'friendly_id'

require 'comable/core/configuration'
require 'comable/core/engine'

require 'comable/payment_provider'
require 'comable/state_machine_patch'
require 'comable/deprecator'
require 'comable/errors'

require 'comma_extractor_extentions'

module Comable
  class << self
    def setup(&_)
      yield Comable::Config
    end

    def translate(key, options = {})
      I18n.translate("comable.#{key}", options)
    end

    alias_method :t, :translate

    def app_name
      'Comable'
    end

    def homepage
      'https://github.com/appirits/comable#comable'
    end

    def license
      'https://github.com/appirits/comable/blob/master/MIT-LICENSE'
    end
  end
end