Checking both ActiveModel and Rails presence in phonelib.rb

While using phonelib in a Rails Engine, ActiveModel isn't loaded yet while phonelib.rb is executed. For this case, it was necessary to add a check if Rails is defined.

```ruby
autoload :PhoneValidator, 'validators/phone_validator' if defined?(ActiveModel) || defined?(Rails)
```