I'm using this plugin called validates-existence-of-uri in my model as follows:
class Project < ActiveRecord::Base
validates_uri_existence_of :link, :allow_redirect => false
end
Its working and fine. And I've a seeds.rb file which seed the data using Faker to generate urls So, while seeding the data, the above validation tries to check that fake url and I got to comment that validation while seeding data.
So, its annoying me every time I do the seeding. Is there any way out to perform that validation only if the Rails environment is production??