Skip to content

Commit

Permalink
Changed arguments order
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Naiman committed Apr 28, 2020
1 parent df22158 commit f0ee9ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/rasti/db/query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ class Query

include Enumerable

def initialize(collection_class:, dataset:, environment:, relations_graph:nil)
def initialize(environment:, collection_class:, dataset:, relations_graph:nil)
@environment = environment
@collection_class = collection_class
@dataset = dataset
@environment = environment
@relations_graph = relations_graph || Relations::Graph.new(environment, collection_class)
end

Expand Down Expand Up @@ -126,13 +126,13 @@ def nql(filter_expression)

private

attr_reader :collection_class, :dataset, :environment, :relations_graph
attr_reader :environment, :collection_class, :dataset, :relations_graph

def build_query(**args)
current_args = {
environment: environment,
collection_class: collection_class,
dataset: dataset,
environment: environment,
relations_graph: relations_graph
}

Expand Down

0 comments on commit f0ee9ed

Please sign in to comment.