Skip to content

Commit

Permalink
load association.rb first, to fix load error on older version of motion.
Browse files Browse the repository at this point in the history
  • Loading branch information
siuying committed Dec 17, 2012
1 parent 7924faa commit 57582e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/nano_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
app.files.unshift(file)
end

# Load finder first
# Load finder and association first
app.files.unshift(File.join(File.dirname(__FILE__), 'nano_store/association.rb'))
app.files.unshift(File.join(File.dirname(__FILE__), 'nano_store/finder.rb'))

app.pods ||= Motion::Project::CocoaPods.new(app)
Expand Down
2 changes: 1 addition & 1 deletion lib/nano_store/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def delete(*args)
class Model < NSFNanoObject
include ModelInstanceMethods
extend ModelClassMethods
extend ::NanoStore::FinderMethods
extend FinderMethods

include AssociationInstanceMethods
extend AssociationClassMethods
Expand Down

0 comments on commit 57582e3

Please sign in to comment.