Skip to content

Commit

Permalink
Use if/elsif instead of empty case
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 26, 2015
1 parent b5a8165 commit bff58ed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/active_groonga/migration.rb
Expand Up @@ -71,10 +71,9 @@ def report(message)
end

def root_directory
case
when defined? Rails
if defined?(Rails)
Rails.root
when defined? Padrino
elsif defined?(Padrino)
Padrino.root
else
Pathname.pwd
Expand Down

0 comments on commit bff58ed

Please sign in to comment.