Improved error handling.
This commit is contained in:
parent
980e924de2
commit
f2fd9b25c4
3 changed files with 8 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -25,6 +25,9 @@ Gemfile.lock
|
|||
# Ignore .swp files
|
||||
.*.swp
|
||||
|
||||
# Ignore coverage stuff
|
||||
/coverage/*
|
||||
|
||||
# Ignore local changes to schema.rb (e. g. through extentions)
|
||||
db/schema.rb
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
require 'Cache'
|
||||
|
||||
class ApplicationModel < ActiveRecord::Base
|
||||
self.abstract_class = true
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ class Ticket < ApplicationModel
|
|||
require "ticket/number/#{adapter_name.to_s.downcase}"
|
||||
@@number_adapter = Ticket::Number.const_get("#{adapter_name.to_s.capitalize}")
|
||||
else
|
||||
raise "Missing number_adapter #{adapter_name}"
|
||||
raise "Missing number_adapter '#{adapter_name}'"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue