Skip to content
Browse files

no need to make method_missing public

  • Loading branch information...
1 parent b5e5033 commit 0e066685d27ec3633bd33f0e9e969eb779e34e0a @dnagir committed Dec 6, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 spec/query_spec.rb
View
9 spec/query_spec.rb
@@ -14,10 +14,6 @@ def to_query
})
end
- def method_missing(method, *args, &block)
- add_path(method)
- end
-
def execute!
q = self.to_query
api = Morpheus::API.const_get(q.type.to_s.camelize).new
@@ -26,6 +22,11 @@ def execute!
protected
+ def method_missing(method, *args, &block)
+ add_path(method)
+ end
+
+
def assemble_paths
Kernel.raise "Nothing is defined for the query." if @paths.empty?
@paths.map{|p| "-[:#{p}]->"}.join("()")

0 comments on commit 0e06668

Please sign in to comment.
Something went wrong with that request. Please try again.