app/fake_records/repository_file.rb
Class RepositoryFile
has 28 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class RepositoryFile < FakeRecord
class PathValidator < ActiveModel::Validator
def validate(record)
if record.repository.points_through_file?(record.target_path)
record.errors[:target_directory] = "Error! This path points to or through a file."