lib/active_uxid.rb in active_uxid-1.0.2 vs lib/active_uxid.rb in active_uxid-1.0.3
- old
+ new
@@ -1,11 +1,12 @@
# frozen_string_literal: true
-%w[hash ulid].each do |file_name|
- require "active_uxid/record/#{file_name}"
+%w[version settings].each do |file_name|
+ require "active_uxid/#{file_name}"
end
-%w[version settings base hash ulid record].each do |file_name|
+%w[base hash ulid].each_with_index do |file_name, i|
+ require "active_uxid/record/#{file_name}" unless i.zero?
require "active_uxid/#{file_name}"
end
require 'generators/active_uxid/install_generator'