Sha256: 5812f0a43853cb7d93e816cc4d1158fd8f3fe610c12b8d4e5edc1f6824146918
Contents?: true
Size: 281 Bytes
Versions: 5
Compression:
Stored size: 281 Bytes
Contents
# Test for variable assignment from an if statement @products = if params[:category] Category.find(params[:category]).products else Product.all end # Test for variable assignment from a block response = begin if true? api_call(test) else rejected end rescue 'FALSE' end
Version data entries
5 entries across 5 versions & 1 rubygems