GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
Replaced remaining ::STATUS constant references to .status method calls
fabien (author)
Thu May 01 02:15:12 -0700 2008
commit  045e153fb5e96c43f95f1fd3674787f862e202fe
tree    068055424b2bef7f6b1df6f57ca91ce6a4305d13
parent  637c35218664969861fe021aa68f11551d1481de
...
73
74
75
76
 
77
78
79
...
73
74
75
 
76
77
78
79
0
@@ -73,7 +73,7 @@ module Merb::AuthenticationMixin
0
 
0
     def request
0
       @controller.headers['WWW-Authenticate'] = 'Basic realm="%s"' % @realm
0
- throw :halt, @controller.render("HTTP Basic: Access denied.\n", :status => Unauthorized::STATUS, :layout => false)
0
+ throw :halt, @controller.render("HTTP Basic: Access denied.\n", :status => Unauthorized.status, :layout => false)
0
     end
0
     
0
     protected
...
163
164
165
166
 
167
168
169
...
210
211
212
213
 
214
215
216
...
163
164
165
 
166
167
168
169
...
210
211
212
 
213
214
215
216
0
@@ -163,7 +163,7 @@ Stacktrace:
0
         request.params[:exception] = exception
0
         request.params[:action] = exception_klass.name
0
         
0
- dispatch_action(klass, exception_klass.name, request, exception.class::STATUS)
0
+ dispatch_action(klass, exception_klass.name, request, exception.class.status)
0
       rescue => dispatch_issue
0
         dispatch_issue = controller_exception(dispatch_issue)
0
         # when no action/template exist for an exception, or an
0
@@ -210,7 +210,7 @@ Stacktrace:
0
     # An array containing the Merb::Controller that was dispatched to and the
0
     # error's name. For instance, a NotFound error's name is "not_found".
0
     def dispatch_default_exception(klass, request, e)
0
- controller = klass.new(request, e.class::STATUS)
0
+ controller = klass.new(request, e.class.status)
0
       if e.is_a? Merb::ControllerExceptions::Redirection
0
         controller.headers.merge!('Location' => e.message)
0
         controller.body = %{ } #fix
...
169
170
171
172
 
173
174
175
...
169
170
171
 
172
173
174
175
0
@@ -169,7 +169,7 @@
0
   <div class="internalError">
0
     
0
     <div class="header">
0
- <h1><%= @exception_name %> <sup class="error_<%= @exception.class::STATUS %>"><%= @exception.class::STATUS %></sup></h1>
0
+ <h1><%= @exception_name %> <sup class="error_<%= @exception.class.status %>"><%= @exception.class.status %></sup></h1>
0
       <% if show_details = ::Merb::Config[:exception_details] -%>
0
         <h2><%= html_escape(@exception.message) %></h2>
0
       <% else -%>
...
129
130
131
132
 
133
134
135
...
129
130
131
 
132
133
134
135
0
@@ -129,7 +129,7 @@
0
   <div class="internalError">
0
     
0
     <div class="header">
0
- <h1><%= @exception_name %> <sup class="error_<%= @exception.class::STATUS %>"><%= @exception.class::STATUS %></sup></h1>
0
+ <h1><%= @exception_name %> <sup class="error_<%= @exception.class.status %>"><%= @exception.class.status %></sup></h1>
0
       <% if show_details = ::Merb::Config[:exception_details] -%>
0
         <h2><%= @exception.message %></h2>
0
       <% else -%>

Comments

    No one has commented yet.