Skip to content

Instantly share code, notes, and snippets.

@3lvis
Created August 25, 2016 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3lvis/02497a0fd9f1c04c26f750799ed94ed2 to your computer and use it in GitHub Desktop.
Save 3lvis/02497a0fd9f1c04c26f750799ed94ed2 to your computer and use it in GitHub Desktop.
class func dataStackWithModelName(modelName: String) -> DATAStack {
let bundle = NSBundle(forClass: Helper.self)
let dataStack = DATAStack(modelName: modelName, bundle: bundle, storeType: .SQLite)
return dataStack
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment