Add attr_accessor to attribute setting