Skip to content

Commit

Permalink
Merge pull request #1926 from yangchenyun/fix_viable_models_method
Browse files Browse the repository at this point in the history
fixed error for viable_models method
  • Loading branch information
mshibuya committed Mar 7, 2014
2 parents d55b6a8 + f15e0c9 commit 48686de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails_admin/config.rb
Expand Up @@ -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

This comment has been minimized.

Copy link
@Sija

Sija Mar 7, 2014

Why use flat_map and flatten together?

)
end

Expand Down

0 comments on commit 48686de

Please sign in to comment.