Kouhei Sutou
null+****@clear*****
Wed Feb 19 13:35:40 JST 2014
Kouhei Sutou 2014-02-19 13:35:40 +0900 (Wed, 19 Feb 2014) New Revision: 82d5138a3cfcb67145c26e87a596c51844f23346 https://github.com/droonga/fluent-plugin-droonga/commit/82d5138a3cfcb67145c26e87a596c51844f23346 Message: Use "collect" instead of "map" Because we use "collect" in other files. Modified files: lib/droonga/catalog/schema.rb Modified: lib/droonga/catalog/schema.rb (+2 -2) =================================================================== --- lib/droonga/catalog/schema.rb 2014-02-18 10:23:30 +0900 (20d5b5b) +++ lib/droonga/catalog/schema.rb 2014-02-19 13:35:40 +0900 (87ba81c) @@ -193,7 +193,7 @@ module Droonga end def all_columns - @tables.values.map {|table| table.columns.values}.flatten + @tables.values.collect {|table| table.columns.values}.flatten end def tsort_each_node(&block) @@ -203,7 +203,7 @@ module Droonga def tsort_each_child(column, &block) dependent_column_names = column.index_options.sources || [] reference_table = @tables[column.value_type] - dependent_columns = dependent_column_names.map do |column_name| + dependent_columns = dependent_column_names.collect do |column_name| reference_table.columns[column_name] end dependent_columns.each(&block) -------------- next part -------------- HTML����������������������������...Download