hummingbird-me/kitsu-server

View on GitHub
app/models/profile_link_site.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ProfileLinkSite < ApplicationRecord
  validates_presence_of :name, :validate_find, :validate_replace

  def validate_find
    Regexp.new(self[:validate_find]) unless self[:validate_find].nil?
  end
end