only one copy of symbol  

irb(main):001:0> "string".object_id == "string".object_id
=> false
irb(main):002:0> :string.object_id == :string.object_id
=> true

The .object_id method gets the ID of an object—it’s how Ruby knows whether two objects are the exact same object.

irb(main):002:0> string = "string"
=> "string"
irb(main):003:0> string.object_id == "string".object_id
=> false
irb(main):004:0> string = :string
=> :string
irb(main):005:0> string.object_id == :string.object_id
=> true
 
0
Kudos
 
0
Kudos

Now read this

Authorization with Pundit

I want share my experience in the group from our Monday meetup yesterday. Let’s refresh the memory: “do authorization with pundit gem” – Homework here on github issue #12 https://rubygems.org/gems/pundit We went to this page and bundle... Continue →