refactoring and fix bug
add ActiveRecord.singularize_name classproperty