actionpack 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of actionpack might be problematic. Click here for more details.

data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ *1.0.1*
2
+
3
+ * Fixed a bug that would cause an ApplicationController to require itself three times and hence cause filters to be run three times [evl]
4
+
5
+
1
6
  *1.0*
2
7
 
3
8
  * Added that controllers will now attempt to require a model dependency with their name and in a singular attempt for their name.
@@ -32,8 +32,9 @@ module ActionController #:nodoc:
32
32
  # observer :project_change_observer
33
33
  # end
34
34
  #
35
- # Please note that a controller like ApplicationController will automatically attempt to require_dependency on a model of its name and a helper
36
- # of its name. If nothing is found, no error is raised. This is especially useful for concrete controllers like PostController:
35
+ # Please note that a controller like ApplicationController will automatically attempt to require_dependency on a model of its
36
+ # singuralized name and a helper of its name. If nothing is found, no error is raised. This is especially useful for concrete
37
+ # controllers like PostController:
37
38
  #
38
39
  # class PostController < ApplicationController
39
40
  # # model :post (already required)
@@ -94,8 +95,8 @@ module ActionController #:nodoc:
94
95
 
95
96
  def inherited(child)
96
97
  inherited_without_model(child)
98
+ return if child.controller_name == "application" # otherwise the ApplicationController in Rails will include itself
97
99
  begin
98
- child.model(child.controller_name)
99
100
  child.model(Inflector.singularize(child.controller_name))
100
101
  rescue LoadError
101
102
  # No neither singular or plural model available for this controller
@@ -103,4 +104,4 @@ module ActionController #:nodoc:
103
104
  end
104
105
  end
105
106
  end
106
- end
107
+ end
data/rakefile CHANGED
@@ -8,7 +8,7 @@ require 'rake/contrib/rubyforgepublisher'
8
8
 
9
9
  PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
10
10
  PKG_NAME = 'actionpack'
11
- PKG_VERSION = '1.0.0' + PKG_BUILD
11
+ PKG_VERSION = '1.0.1' + PKG_BUILD
12
12
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
13
13
 
14
14
  desc "Default Task"
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.1
3
3
  specification_version: 1
4
4
  name: actionpack
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.0
7
- date: 2004-12-16
6
+ version: 1.0.1
7
+ date: 2004-12-17
8
8
  summary: Web-flow and rendering framework putting the VC in MVC.
9
9
  require_paths:
10
10
  - lib