I have a concern looking something like
module StrategyConcern
extend ActiveSupport::Concern
included do
attr_accessor :strategy_display_name
end
end
and i have included it in my model include StrategyConcern
but when i try to assign value to that like this
obj["strategy_display_name"] = "test_display_name"
i am getting error
undefined method `strategy_display_name=' for #<Test:0x00007f868e4aa350>
I want that object attribute to access, without getting the mentioned error.