neerajdotname-active_record_no_table 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,5 +1,9 @@
1
1
 
2
2
 
3
+ === 0.0.3 2009-06-31
4
+
5
+ * fixing the bug regarding rails 2.3.x
6
+
3
7
  === 0.0.2 2009-06-31
4
8
 
5
9
  * fixing the bug regarding rails 2.1.x
@@ -103,7 +103,7 @@ module Validateable_2_3
103
103
  end
104
104
 
105
105
  module ClassMethods
106
- def self_and_descendents_from_active_record
106
+ def self_and_descendants_from_active_record
107
107
  klass = self
108
108
  classes = [klass]
109
109
  while klass != klass.base_class
@@ -115,7 +115,7 @@ module Validateable_2_3
115
115
  end
116
116
 
117
117
  def human_name(options = {})
118
- defaults = self_and_descendents_from_active_record.map do |klass|
118
+ defaults = self_and_descendants_from_active_record.map do |klass|
119
119
  :"#{klass.name.underscore}"
120
120
  end
121
121
  defaults << self.name.humanize
@@ -123,7 +123,7 @@ module Validateable_2_3
123
123
  end
124
124
 
125
125
  def human_attribute_name(attribute_key_name, options = {})
126
- defaults = self_and_descandants_from_active_record.map do |klass|
126
+ defaults = self_and_descendants_from_active_record.map do |klass|
127
127
  :"#{klass.name.underscore}.#{attribute_key_name}"
128
128
  end
129
129
  defaults << options[:default] if options[:default]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neerajdotname-active_record_no_table
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neeraj Singh