lib/thingfish/metastore/pggraph/node.rb
changeset 7 f0ef12e25a2f
parent 3 5b4ee98d698c
child 8 1ad0d5bc5083
equal deleted inserted replaced
6:4450ba4a0937 7:f0ef12e25a2f
    73 		###
    73 		###
    74 		def order_metadata( *columns )
    74 		def order_metadata( *columns )
    75 			columns.flatten!
    75 			columns.flatten!
    76 			ds = self
    76 			ds = self
    77 			columns.each do |column|
    77 			columns.each do |column|
    78 				if Thingfish::Metastore::PG::Metadata.metadata_columns.include?( column.to_sym )
    78 				if Thingfish::Metastore::PgGraph::Node.metadata_columns.include?( column.to_sym )
    79 					ds = ds.order_append( column.to_sym )
    79 					ds = ds.order_append( column.to_sym )
    80 				else
    80 				else
    81 					ds = ds.order_append( self.user_metadata_expr(column) )
    81 					ds = ds.order_append( self.user_metadata_expr(column) )
    82 				end
    82 				end
    83 			end
    83 			end