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.
Files changed (2) hide show
  1. data/lib/active_form.rb +8 -0
  2. 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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cs-active_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Schiessl