Navigation Menu

Skip to content

Commit

Permalink
Make expression rewriters table name customizable
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 8, 2015
1 parent e6b1fd4 commit a04c9a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mrb/scripts/expression_rewriters.rb
Expand Up @@ -8,7 +8,8 @@ def register(name, rewriter_class)
end

def classes
rewriters_table = Context.instance["rewriters"]
rewriters_table_name = Conf["expression_rewriter.table"] || "rewriters"
rewriters_table = Context.instance[rewriters_table_name]
return [] if rewriters_table.nil?

rewriters_table.collect do |id|
Expand Down

0 comments on commit a04c9a0

Please sign in to comment.