lib/q4m.rb in q4m-0.0.3 vs lib/q4m.rb in q4m-0.0.4
- old
+ new
@@ -109,10 +109,10 @@
#
# This method is here so child classes can define the tablename
# that they pull out jobs from by overriding.
#
def table_name
- self.class.gsub(/([A-Z])/, '_\1').gsub(/^_/, '').downcase + 's'
+ self.class.name.gsub(/([A-Z])/, '_\1').gsub(/^_/, '').downcase + 's'
end
# Job execution.
#
# Child classes should define how exactly the job is to be