代码搜索:Validates
找到约 199 项符合「Validates」的源代码
代码结果 199
www.eeworm.com/read/488400/1230198
rb validates_date_time.rb
require File.dirname(__FILE__) + '/parser'
require File.dirname(__FILE__) + '/restrictions'
module ActiveRecord::Validations::DateTime
def self.included(base)
base.extend(ClassMethods)
www.eeworm.com/read/144216/5752068
alloc reg.alloc
while ($i--) {
foo();
}
exit
PP code if i an int register if i an int but not a
(i.e. can't be register (i.e. can be
implicitly invalidated) implicitly invalidated)
nextstate
www.eeworm.com/read/134009/5895960
alloc reg.alloc
while ($i--) {
foo();
}
exit
PP code if i an int register if i an int but not a
(i.e. can't be register (i.e. can be
implicitly invalidated) implicitly invalidated)
nextstate
www.eeworm.com/read/162614/5530807
c 20040622-2.c
/* { dg-do link } */
/* This validates codegen for [r1+32760] on Darwin. */
void f(char x[32688], double *y, double *z) __attribute__((noinline));
void f(char x[32688], double *y, double *z) {}
main()
www.eeworm.com/read/156531/5611514
alloc reg.alloc
while ($i--) {
foo();
}
exit
PP code if i an int register if i an int but not a
(i.e. can't be register (i.e. can be
implicitly invalidated) implicitly invalidated)
nex
www.eeworm.com/read/275831/10793721
rb 13 - validating data with activerecord.rb
require 'cookbook_dbconnect'
activerecord_connect
class Comment < ActiveRecord::Base
@@profanity = %w{trot krip}
@@no_profanity_re = Regexp.new('^(?!.*(' + @@profanity.join('|') + '))')
valida
www.eeworm.com/read/458008/1590732
orig user.rb.orig
require 'digest/sha1'
#START:validate
class User < ActiveRecord::Base
validates_presence_of :name
validates_uniqueness_of :name
attr_accessor :password_c
www.eeworm.com/read/458008/1590795
orig user.rb.orig
require 'digest/sha1'
#START:validate
class User < ActiveRecord::Base
validates_presence_of :name
validates_uniqueness_of :name
attr_accessor :password_c
www.eeworm.com/read/488400/1230103
rb language.rb
module Globalize
class Language < ActiveRecord::Base # :nodoc:
set_table_name "globalize_languages"
validates_presence_of :english_name
validates_uniqueness_of :iso_639_1, :if =>
www.eeworm.com/read/219096/4852414
svn-base validator.js.svn-base
//=====================================================================================
//===
//=== Validator
//===
//=== Validates the content of text fields against a set of rules
//===
//=== Needs