Sha256: 3479a02e548dedb706b12d494150e7caa00822c6166f3790903518fd9d33ec5b
Contents?: true
Size: 276 Bytes
Versions: 1
Compression:
Stored size: 276 Bytes
Contents
require 'pieces/rails/railtie' module Pieces class Rails def mount(options = {}) path = options[:path] || Dir.pwd Pieces::Listener.new(path: path, build_method: :build_routes).listen Pieces::Server.new(options.merge(path: path)).app end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pieces-0.4.1 | lib/pieces/rails.rb |