| 
									
										
										
										
											2014-11-26 16:59:46 +03:00
										 |  |  | module Validators | 
					
						
							| 
									
										
										
										
											2015-07-27 18:27:52 +03:00
										 |  |  |   module Helpers; end | 
					
						
							|  |  |  |   module DeployEnv; end | 
					
						
							|  |  |  |   module Key; end | 
					
						
							|  |  |  |   module Image; end | 
					
						
							| 
									
										
										
										
											2015-10-06 13:50:26 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |   module FieldValidator; end | 
					
						
							| 
									
										
										
										
											2014-11-26 16:59:46 +03:00
										 |  |  | end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | require "db/validators/base" | 
					
						
							| 
									
										
										
										
											2015-02-12 13:01:05 +03:00
										 |  |  | [ | 
					
						
							| 
									
										
										
										
											2016-01-27 15:44:59 +03:00
										 |  |  |   'helpers/*.rb', | 
					
						
							|  |  |  |   'deploy_env/*.rb', | 
					
						
							|  |  |  |   'key/*.rb', | 
					
						
							|  |  |  |   'image/*.rb', | 
					
						
							|  |  |  |   'field_validators/*.rb' | 
					
						
							| 
									
										
										
										
											2015-02-12 13:01:05 +03:00
										 |  |  | ].each do |files_regexp| | 
					
						
							| 
									
										
										
										
											2016-01-27 15:44:59 +03:00
										 |  |  |   current_dir = File.dirname(__FILE__) | 
					
						
							|  |  |  |   Dir[File.join(current_dir, files_regexp)].each {|file| require file } | 
					
						
							| 
									
										
										
										
											2015-02-12 13:01:05 +03:00
										 |  |  | end |