Permalink
Browse files

Merge pull request #1926 from yangchenyun/fix_viable_models_method

fixed error for viable_models method
  • Loading branch information...
2 parents d55b6a8 + f15e0c9 commit 48686debc4580393e081962d6415c8aa04e2b8c7 @mshibuya mshibuya committed Mar 7, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rails_admin/config.rb
@@ -314,7 +314,7 @@ def viable_models
end
end
end
- end.reject { |m| m.starts_with?('Concerns::') } # rubocop:disable MultilineBlockChain
+ end.flatten.reject { |m| m.starts_with?('Concerns::') } # rubocop:disable MultilineBlockChain
@Sija

Sija Mar 7, 2014

Why use flat_map and flatten together?

)
end

0 comments on commit 48686de

Please sign in to comment.