Closed ofl closed 11 years ago
If you are trying that in REPL, this could happen if you only have NSFGreaterThan
in your ruby source code but not NSFLessThan
or NSFBeforeDate
. RubyMotion will remove all symbols not referenced by your app.
As a work around, you may include all of those symbol in your app.
Thank you for a reply.
As a work around, you may include all of those symbol in your app.
it works. but
Article.create(created_at: Time.now)
ar = Article.find(:created_at => {NSFBeforeDate => Time.now})
=> []
or
ar = Article.find(:created_at => {NSFBeforeDate => NSDate.date})
=> []
Is it the wrong usage?
Would you please try to use NSDate for yuour created_at? The NSFBeforeDate is designed for NSDate not ruby Time.
In RubyMotion Time is not a NSDate. (this can be confirmed via REPL: Time.class.ancestors => [Class, Module, NSObject, Profiler::ObjectExt, Kernel] )
As this is not an issue of NanoStore, i'll close this issue.
Hello, Some NanoStore finder options(NSFLessThan, NSFBeforeDate..) doesn't seem to work.
Have you any suggestions ? Thanks.