Skip to content

Commit

Permalink
* supporting last_error > 50 characters
Browse files Browse the repository at this point in the history
 * supporting DataMapper backend while dm-validations is in play
  • Loading branch information
lpetre committed Apr 7, 2010
1 parent 803f2bf commit 37a16d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Jeweler::Tasks.new do |s|
s.add_development_dependency "dm-core"
s.add_development_dependency "dm-observer"
s.add_development_dependency "dm-aggregates"
s.add_development_dependency "dm-validations"
s.add_development_dependency "do_sqlite3"
s.add_development_dependency "database_cleaner"
end
Expand Down
2 changes: 1 addition & 1 deletion lib/delayed/backend/data_mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Job
property :locked_at, Time
property :locked_by, String
property :failed_at, Time
property :last_error, String
property :last_error, Text

def self.db_time_now
Time.now
Expand Down
2 changes: 2 additions & 0 deletions spec/setup/data_mapper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
require 'dm-core'
require 'dm-validations'

require 'delayed/backend/data_mapper'

DataMapper.logger = Delayed::Worker.logger
Expand Down

0 comments on commit 37a16d1

Please sign in to comment.