Fix double require problem when using require_dependency
Use mass assignment protection