Sha256: 8320c6da45a8a01bbcbb3dc438f81241b0a195adba2807e1ac3cb3534cc1643b

Contents?: true

Size: 285 Bytes

Versions: 1

Compression:

Stored size: 285 Bytes

Contents

require "ifms/version"

module Ifms
  class Error < StandardError; end
  class << self
    def load!
      register_rails_engine if rails?
    end

    def rails?
      defined?(::Rails)
    end

    private

    def register_rails_engine
      require 'ifms/engine'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ifms-0.1.1 lib/ifms.rb