fixed undefined accessible_attributes

fixed undefined local variable or method `accessible_attributes' for Class