Sha256: fa8271be7e4331f5c744dba138bb310040938f83efbd97afccd8ad478794fe18

Contents?: true

Size: 421 Bytes

Versions: 3

Compression:

Stored size: 421 Bytes

Contents

module Jax
  class Application
    module Configurable
      def self.included(base)
        base.extend ClassMethods
      end

      module ClassMethods
        def inherited(base)
          raise "You cannot inherit from a Jax::Application child"
        end
      end

      def config
        @config ||= Jax::Application::Configuration.new(self.class.find_root_with_flag("app", Dir.pwd))
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jax-1.1.1 lib/jax/application/configurable.rb
jax-1.1.0 lib/jax/application/configurable.rb
jax-1.1.0.rc1 lib/jax/application/configurable.rb