Skip to content

Commit

Permalink
Trim this because I am angry at the code
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth committed Jan 9, 2025
1 parent c2cb239 commit d0312d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oaken.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module Stored
@lookup_paths = ["db/seeds"]

def self.glob(identifier)
patterns = lookup_paths.map { File.join(_1, "#{identifier}{,/**/*}.rb") }
patterns = lookup_paths.map { File.join _1, "#{identifier}{,/**/*}.rb" }

Pathname.glob(patterns).tap do |found|
raise NoSeedsFoundError, "found no seed files for #{identifier.inspect}" if found.none?
Expand Down

0 comments on commit d0312d9

Please sign in to comment.