cs-active_form 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|