Skip to content

Commit

Permalink
Merge pull request #33 from keiichironagano/feature/index_hint_fix_ke…
Browse files Browse the repository at this point in the history
…ywords_concat

Avoid constant double initialize warning
  • Loading branch information
Gussan committed Jul 27, 2015
2 parents 0e16850 + 77971fe commit f7b8992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_record/turntable/sql_tree_patch.rb
Expand Up @@ -10,7 +10,7 @@ class << self

class SQLTree::Token
extended_keywords = ['BINARY', 'LIMIT', 'OFFSET', 'INDEX', 'KEY', 'USE', 'FORCE', 'IGNORE']
KEYWORDS += extended_keywords
KEYWORDS.concat(extended_keywords)

extended_keywords.each do |kwd|
const_set(kwd, Class.new(SQLTree::Token::Keyword))
Expand Down

0 comments on commit f7b8992

Please sign in to comment.