Skip to content

Commit

Permalink
Merge 494d150 into 8071db3
Browse files Browse the repository at this point in the history
  • Loading branch information
scottwater committed Mar 8, 2019
2 parents 8071db3 + 494d150 commit 26c0314
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -13,7 +13,7 @@ For instance, imagine that you have a model `Product` with a `jsonb` column call

```ruby
product = Product.find(params[:id])
if product.configuration["model"] = "spaceship"
if product.configuration["model"] == "spaceship"
product.configuration["color"] = "red"
end
product.save
Expand All @@ -23,7 +23,7 @@ This approach works fine when you don't have a lot of keys with logic around the

```ruby
product = Product.find(params[:id])
if product.configuration.model = "spaceship"
if product.configuration.model == "spaceship"
product.configuration.color = "red"
end
product.save
Expand Down

0 comments on commit 26c0314

Please sign in to comment.