Sha256: 914490ccf4ed67d3be2a06d25d7cb034561fd9b9d86783233caed56c11bcf68c
Contents?: true
Size: 678 Bytes
Versions: 8
Compression:
Stored size: 678 Bytes
Contents
class CreateDesktopAppProductManager def self.up app = DesktopApplication.create( :description => 'Products', :icon => 'icon-product', :javascript_class_name => 'Compass.ErpApp.Desktop.Applications.ProductManager', :internal_identifier => 'product_manager', :shortcut_id => 'product_manager-win' ) pt1 = PreferenceType.iid('desktop_shortcut') pt1.preferenced_records << app pt1.save pt2 = PreferenceType.iid('autoload_application') pt2.preferenced_records << app pt2.save app.save end def self.down DesktopApplication.destroy_all(:conditions => ['internal_identifier = ?','hello_world']) end end
Version data entries
8 entries across 8 versions & 1 rubygems