lib/weary/resource.rb in weary-0.4.1 vs lib/weary/resource.rb in weary-0.4.3
- old
+ new
@@ -52,13 +52,13 @@
def with=(params)
if params.is_a?(Hash)
@requires.each { |key| params[key] = nil unless params.has_key?(key) }
@with = params
else
- unless @requires.nil?
- @with = params.collect {|x| x.to_sym} | @requires
- else
+ if @requires.nil?
@with = params.collect {|x| x.to_sym}
+ else
+ @with = params.collect {|x| x.to_sym} | @requires
end
end
end
def requires=(params)
\ No newline at end of file