Sha256: 72ffdd79b29321f017f9c78bf87b5041781dc6e0b46950684a4ec409e4f09d52
Contents?: true
Size: 740 Bytes
Versions: 21
Compression:
Stored size: 740 Bytes
Contents
class CreateDesktopAppAuditLogViewer def self.up app = DesktopApplication.create( :description => 'Audit Log Viewer', :icon => 'icon-history', :javascript_class_name => 'Compass.ErpApp.Desktop.Applications.AuditLogViewer', :internal_identifier => 'audit_log_viewer', :shortcut_id => 'audit_log_viewer-win' ) app.preference_types << PreferenceType.iid('desktop_shortcut') app.preference_types << PreferenceType.iid('autoload_application') app.save admin_user = User.find_by_username('admin') admin_user.desktop.applications << app admin_user.desktop.save end def self.down DesktopApplication.destroy_all(['internal_identifier = ?','audit_log_viewer']) end end
Version data entries
21 entries across 21 versions & 1 rubygems