Skip to content

Commit

Permalink
Merge pull request #33 from marcusficner/master
Browse files Browse the repository at this point in the history
Fixes changesetArrayFrom
  • Loading branch information
icanzilb authored Sep 22, 2016
2 parents 065dfa0 + 9b7c2e6 commit f88ccfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Pod/Classes/RxRealm.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,9 @@ public extension ObservableType where E: NotificationEmitter {

- returns: `Observable<(Array<Self.Generator.Element>, RealmChangeset?)>`
*/
public static func changesetArrayFrom(_ collection: E, scheduler: ImmediateSchedulerType = CurrentThreadScheduler.instance) -> Observable<(E, RealmChangeset?)> {
public static func changesetArrayFrom(_ collection: E, scheduler: ImmediateSchedulerType = CurrentThreadScheduler.instance) -> Observable<(Array<E.ElementType>, RealmChangeset?)> {
return Observable.changesetFrom(collection, scheduler: scheduler)
.map { ($0.toArray(), $1) }
}
}

Expand Down

0 comments on commit f88ccfb

Please sign in to comment.