Permalink
Browse files

Fixed issue #287 - MR_findByAttribute:withValue:andOrderBy:ascending:…

…inContext does not pass context through
  • Loading branch information...
1 parent 87ad44a commit 4b97d0e97ecd3d492fb0405115b2f6145bb3b807 @blackgold9 blackgold9 committed Oct 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalFinders.m
@@ -1,4 +1,4 @@
-//
+ //
// NSManagedObject+MagicalFinders.m
// Magical Record
//
@@ -198,7 +198,7 @@ + (NSArray *) MR_findByAttribute:(NSString *)attribute withValue:(id)searchValue
NSPredicate *searchTerm = [NSPredicate predicateWithFormat:@"%K = %@", attribute, searchValue];
NSFetchRequest *request = [self MR_requestAllSortedBy:sortTerm ascending:ascending withPredicate:searchTerm inContext:context];
- return [self MR_executeFetchRequest:request];
+ return [self MR_executeFetchRequest:request inContext:context];
}
+ (NSArray *) MR_findByAttribute:(NSString *)attribute withValue:(id)searchValue andOrderBy:(NSString *)sortTerm ascending:(BOOL)ascending

0 comments on commit 4b97d0e

Please sign in to comment.