cs-active_form 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/active_form.rb +8 -0
- metadata +1 -1
data/lib/active_form.rb
CHANGED
@@ -47,6 +47,14 @@ class ActiveForm
|
|
47
47
|
alias update_attributes raise_not_implemented_error
|
48
48
|
|
49
49
|
class <<self
|
50
|
+
def self_and_descendents_from_active_record
|
51
|
+
[self]
|
52
|
+
end
|
53
|
+
|
54
|
+
def human_name(*args)
|
55
|
+
name.humanize
|
56
|
+
end
|
57
|
+
|
50
58
|
def human_attribute_name(attribute_key_name)
|
51
59
|
attribute_key_name.humanize
|
52
60
|
end
|