Skip to content

Commit

Permalink
no docing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jaycfields committed Jun 5, 2007
1 parent 911d2ab commit f74b324
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/validatable_class_methods.rb
Expand Up @@ -224,7 +224,7 @@ def add_error(instance, attribute, msg) #:nodoc:
instance.errors.add(attribute, msg)
end

def validation_keys_include?(key)
def validation_keys_include?(key) #:nodoc:
validations.map { |validation| validation.key }.include?(key)
end

Expand Down
12 changes: 6 additions & 6 deletions lib/validatable_instance_methods.rb
Expand Up @@ -24,15 +24,11 @@ def valid_for_group?(group=nil) #:nodoc:
errors.empty?
end

def times_validated(key)
def times_validated(key) #:nodoc:
times_validated_hash[key] || 0
end

def times_validated_hash
@times_validated_hash ||= {}
end

def increment_times_validated_for(validation)
def increment_times_validated_for(validation) #:nodoc:
if validation.key != nil
if times_validated_hash[validation.key].nil?
times_validated_hash[validation.key] = 1
Expand All @@ -43,6 +39,10 @@ def increment_times_validated_for(validation)
end

protected
def times_validated_hash #:nodoc:
@times_validated_hash ||= {}
end

def validate(group) #:nodoc:
validation_levels.each do |level|
validations_for_level_and_group(level, group).each do |validation|
Expand Down
2 changes: 1 addition & 1 deletion rakefile.rb
Expand Up @@ -29,7 +29,7 @@
specification = Gem::Specification.new do |s|
s.name = "validatable"
s.summary = "Validatable is a library for adding validations."
s.version = "1.3.4"
s.version = "1.4.0"
s.author = 'Jay Fields'
s.description = "Validatable is a library for adding validations."
s.email = 'validatable-developer@rubyforge.org'
Expand Down

0 comments on commit f74b324

Please sign in to comment.