Sha256: dd6a7d51006f23958b0ea713ea9a5f6f048c3bfe804a52057f5cf2198b47ac2d
Contents?: true
Size: 523 Bytes
Versions: 11
Compression:
Stored size: 523 Bytes
Contents
module Copyable class SyntaxChecker def self.check!(model_class, declaration_block) raise CopyableError.new("You must pass copyable a block") if declaration_block.nil? declaration_checker = DeclarationChecker.new declaration_checker.verify!(declaration_block) column_checker = ColumnChecker.new(model_class) column_checker.verify!(declaration_block) association_checker = AssociationChecker.new(model_class) association_checker.verify!(declaration_block) end end end
Version data entries
11 entries across 11 versions & 1 rubygems