lib/jaysus/local.rb in jaysus-0.1.1 vs lib/jaysus/local.rb in jaysus-0.1.2
- old
+ new
@@ -1,8 +1,7 @@
module Jaysus
module Local
-
def self.store_dir
@store_dir ||= Pathname.new('.')
end
def self.store_dir=(dir)
@@ -29,9 +28,10 @@
end
end
module ClassMethods
def all
+ # debugger if self.model_name == 'Kalipso::Site'
records = []
Dir[store_file_dir.join('*')].each do |id|
records << find(id)
end
records
\ No newline at end of file