File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Sources/WordPressData/Swift
Tests/KeystoneTests/Tests/CoreData Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import Foundation
22
33extension Bundle {
4- public static var wordPressData : Bundle {
4+ @ objc public class var wordPressData : Bundle {
55 Bundle ( for: BundleToken . self)
66 }
77}
Original file line number Diff line number Diff line change @@ -217,13 +217,13 @@ - (void)testMigrationFrom103To104CustomTransformers
217217- (NSURL *)urlForModelName : (NSString *)modelName
218218 inDirectory : (NSString *)directory
219219{
220- NSBundle *bundle = [NSBundle mainBundle ];
220+ NSBundle *bundle = [NSBundle wordPressData ];
221221 NSURL *url = [bundle URLForResource: modelName
222222 withExtension: @" mom"
223223 subdirectory: directory];
224224 if (nil == url) {
225225 // Get mom file paths from momd directories.
226- NSArray *momdPaths = [[NSBundle mainBundle ] pathsForResourcesOfType: @" momd"
226+ NSArray *momdPaths = [[NSBundle wordPressData ] pathsForResourcesOfType: @" momd"
227227 inDirectory: directory];
228228 for (NSString *momdPath in momdPaths) {
229229 url = [bundle URLForResource: modelName
You can’t perform that action at this time.
0 commit comments