homeschool 0.0.1.26 → 0.0.1.27

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/tame_rails.rb +5 -1
  2. metadata +3 -3
data/lib/tame_rails.rb CHANGED
@@ -14,6 +14,10 @@ class ActionController::Base
14
14
  end
15
15
 
16
16
  def self.model_name
17
- name.sub(/Controller$/, '').singularize.constantize
17
+ name.sub(/Controller$/, '').singularize.underscore
18
+ end
19
+
20
+ def self.model_class
21
+ model_name.classify.constantize
18
22
  end
19
23
  end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.2
2
+ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: homeschool
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1.26
7
- date: 2007-09-21 00:00:00 -04:00
6
+ version: 0.0.1.27
7
+ date: 2007-09-24 00:00:00 -04:00
8
8
  summary: The homeschool gem
9
9
  require_paths:
10
10
  - lib