Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Braiden Vasco committed Oct 23, 2015
1 parent 120f8b0 commit 8bbe52b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/lita/handlers/faker.rb
Expand Up @@ -21,7 +21,8 @@ class Faker < Handler

def route_faker(response)
matches = response.matches[0]
namespace = ::Faker.const_get(matches[0].split('_').map(&:capitalize).join.to_sym)
namespace = ::Faker.const_get \
matches[0].split('_').map(&:capitalize).join.to_sym
command = namespace.method(matches[1].to_sym)

response.reply(command.call)
Expand Down

0 comments on commit 8bbe52b

Please sign in to comment.