Sha256: 8a18b777ce32ff005e8100a0c2a213459c02ac4044f0f0da55954d6710816f7a
Contents?: true
Size: 666 Bytes
Versions: 14
Compression:
Stored size: 666 Bytes
Contents
class CreateJobTrackerDesktopApplication def self.up app = DesktopApplication.create( :description => 'Job Tracker', :icon => 'icon-calendar', :javascript_class_name => 'Compass.ErpApp.Desktop.Applications.JobTracker', :internal_identifier => 'job_tracker', :shortcut_id => 'job_tracker-win' ) pt1 = PreferenceType.iid('desktop_shortcut') pt1.preferenced_records << app pt1.save pt2 = PreferenceType.iid('autoload_application') pt2.preferenced_records << app pt2.save end def self.down DesktopApplication.destroy_all(['internal_identifier = ?','job_tracker']) end end
Version data entries
14 entries across 14 versions & 1 rubygems