Skip to content

Instantly share code, notes, and snippets.

View a-bx's full-sized avatar

Abraham Barrera a-bx

  • Migrante
  • Chile
View GitHub Profile
@a-bx
a-bx / PackageApplication
Created August 7, 2018 02:49
PackageApplication script from Xcode 8.2.1
#!/usr/bin/perl
#
# PackageApplication
#
# Copyright (c) 2009-2012 Apple Inc. All rights reserved.
#
# Package an iPhone Application into an .ipa wrapper
#
use Pod::Usage;
@a-bx
a-bx / multi-database_pattern.md
Created October 12, 2016 03:37 — forked from masciugo/multi-database_pattern.md
Rails multi-database pattern

Rails multi-database pattern

The parent class for models that are persisted on a different database app/models/public_database_model.rb:

# Public: Provide a base class for accessing the public database.
# All models inheriting from this class will use by default the data store DB.
class PublicDatabaseModel < ActiveRecord::Base

Tell Active Record (AR) to not look up for a table called like this class,