File tree 2 files changed +3
-3
lines changed
Sources/WordPressData/Swift
Tests/KeystoneTests/Tests/CoreData
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import Foundation
2
2
3
3
extension Bundle {
4
- public static var wordPressData : Bundle {
4
+ @ objc public class var wordPressData : Bundle {
5
5
Bundle ( for: BundleToken . self)
6
6
}
7
7
}
Original file line number Diff line number Diff line change @@ -217,13 +217,13 @@ - (void)testMigrationFrom103To104CustomTransformers
217
217
- (NSURL *)urlForModelName : (NSString *)modelName
218
218
inDirectory : (NSString *)directory
219
219
{
220
- NSBundle *bundle = [NSBundle mainBundle ];
220
+ NSBundle *bundle = [NSBundle wordPressData ];
221
221
NSURL *url = [bundle URLForResource: modelName
222
222
withExtension: @" mom"
223
223
subdirectory: directory];
224
224
if (nil == url) {
225
225
// Get mom file paths from momd directories.
226
- NSArray *momdPaths = [[NSBundle mainBundle ] pathsForResourcesOfType: @" momd"
226
+ NSArray *momdPaths = [[NSBundle wordPressData ] pathsForResourcesOfType: @" momd"
227
227
inDirectory: directory];
228
228
for (NSString *momdPath in momdPaths) {
229
229
url = [bundle URLForResource: modelName
You can’t perform that action at this time.
0 commit comments