Sha256: 987ae5b64a9e3b4f928f9b0f81590098c135746931b95c49a3450eba16cfec24

Contents?: true

Size: 371 Bytes

Versions: 18

Compression:

Stored size: 371 Bytes

Contents

begin
  module Voltos
    class Railtie < Rails::Railtie
      config.before_configuration { load }

      def load
        Voltos.configure
        Voltos.load
      end

      def root
        Rails.root || Pathname.new(ENV["RAILS_ROOT"] || Dir.pwd)
      end

      def self.load
        instance.load
      end
    end
  end
rescue NameError
  # Rails not loaded
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
voltos-0.3.2 lib/voltos/rails.rb
voltos-0.3.0 lib/voltos/rails.rb
voltos-0.3.0.rc14 lib/voltos/rails.rb
voltos-0.3.0.rc13 lib/voltos/rails.rb
voltos-0.3.0.rc12 lib/voltos/rails.rb
voltos-0.3.0.rc11 lib/voltos/rails.rb
voltos-0.3.0.rc10 lib/voltos/rails.rb
voltos-0.3.0.rc9 lib/voltos/rails.rb
voltos-0.3.0.rc8 lib/voltos/rails.rb
voltos-0.3.0.rc7 lib/voltos/rails.rb
voltos-0.3.0.rc6 lib/voltos/rails.rb
voltos-0.3.0.rc5 lib/voltos/rails.rb
voltos-0.3.0.rc4 lib/voltos/rails.rb
voltos-0.3.0.rc3 lib/voltos/rails.rb
voltos-0.3.0.rc2 lib/voltos/rails.rb
voltos-0.3.0.rc1 lib/voltos/rails.rb
voltos-0.3.0rc1 lib/voltos/rails.rb
voltos-0.2.1 lib/voltos/rails.rb