Replaced obsolete call to attr with boolean with attr_accessor