Changeset 757 for trunk/radiant/app/models/page_context.rb
- Timestamp:
- 02/23/08 12:14:48 (6 months ago)
- Files:
-
- trunk/radiant/app/models/page_context.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/radiant/app/models/page_context.rb
r628 r757 18 18 super 19 19 rescue Exception => e 20 raise e if testing?20 raise e if raise_errors? 21 21 @tag_binding_stack.pop unless @tag_binding_stack.last == binding 22 22 render_error_message(e.message) … … 40 40 end 41 41 42 def testing?43 RAILS_ENV == 'test'42 def raise_errors? 43 RAILS_ENV != 'production' 44 44 end 45 45
