Permalink
Browse files

don't use yard's #namespace_name to deconstantize

  • Loading branch information...
1 parent 0fdf257 commit 71725bde4bb0afbfcc2984d4c9eb03b4e26911eb @machisuji machisuji committed with oliverguenther Apr 12, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/seeders/composite_seeder.rb
@@ -62,7 +62,7 @@ def discovered_seeders
def discovered_seeder_classes
Seeder
.subclasses
- .reject { |cl| cl.namespace_name == namespace }
+ .reject { |cl| cl.to_s.deconstantize == namespace }
.select { |cl| include_discovered_class? cl }
end

0 comments on commit 71725bd

Please sign in to comment.