Commit with attr_accessor method