Skip to content

Commit

Permalink
Add default value for config attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmycuadra committed Dec 6, 2013
1 parent 2a2190b commit 3f7dd38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/lita/handlers/google.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ class Google < Handler
"google QUERY" => "Return the first Google search result for QUERY."
})

def self.default_config(handler_config)
handler_config.safe_search = :active
end

def search(response)
query = response.matches[0][0]

Expand Down

0 comments on commit 3f7dd38

Please sign in to comment.