lib/parcel-rails.rb in parcel-rails-0.9.0 vs lib/parcel-rails.rb in parcel-rails-0.9.1
- old
+ new
@@ -1,9 +1,9 @@
# frozen_string_literal: true
require 'parcel/rails/version'
require 'parcel/rails/runner'
-require 'parcel/rails/parcel_generator'
+require 'parcel/rails/parcel_generator' if defined?(Rails)
module Parcel
# Parceljs integration with Rails
module Rails
if defined?(::Rails)