Search code examples
rubydatabasesqliterhomobilerhodes

Including a pre-seeded database in a RhoMobile application?


So I'm planning on using the Rho::RhoUtils.load_offline_data method to seed my application's database as suggested here

What I'd like to know is where I should call this method? Ideally, I'd like the seeded database to be available when the application is built. So rather than seeding the db the first time the application is for example.


Solution

  • It looks like it's designed to be used in the AppApplication initialize method