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