Skip to content

Instantly share code, notes, and snippets.

@fallanic
fallanic / gist:3252986
Created August 4, 2012 00:17
Cordova Lib customizations

To open a remote URL at application startup with phoneGap 2.0 :

after project creation, in XCode expand "CordovaLib.xcodeproj" and open "Classes/Cleaver/CDVViewController.m" then edit the code : replace

NSString* startFilePath = [self pathForResource:self.startPage];

by

NSString* startFilePath = self.startPage;

@fallanic
fallanic / gist:3177995
Created July 25, 2012 19:21
Monkey patch to extend active-admin csv limit
#overriding the csv limit, setting it to 30000 instead of the default 10000
module ActiveAdmin
class ResourceController
module Collection
module Pagination
def max_csv_records
30_000
end
end
end