lib/grumlin/repository.rb in grumlin-0.22.5 vs lib/grumlin/repository.rb in grumlin-0.23.0
- old
+ new
@@ -30,12 +30,12 @@
define_method name do |*args, query_params: {}, **params, &block|
t = instance_exec(*args, **params, &query_block)
return t if t.nil? || (t.respond_to?(:empty?) && t.empty?)
- unless t.is_a?(Grumlin::Action)
+ unless t.is_a?(Grumlin::Step)
raise WrongQueryResult,
- "queries must return #{Grumlin::Action}, nil or an empty collection. Given: #{t.class}"
+ "queries must return #{Grumlin::Step}, nil or an empty collection. Given: #{t.class}"
end
return block.call(t) unless block.nil?
return t.profile.next if query_params[:profile] == true