This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def channels | |
| @channels ||= begin | |
| if defined?(self.superclass.channels) | |
| self.superclass.channels.clone | |
| else | |
| {} | |
| end | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Ext.regStore('cloudlogistics.stores.ShipmentAlertStore', { | |
| model: 'cloudlogistics.models.ShipmentAlert', | |
| data: [ | |
| { | |
| "name": "Shipment is late" | |
| },{ | |
| "name": "Shipment delivered" | |
| },{ | |
| "name": "Shipment arrive in 2 hours" | |
| },{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Ext.regStore('cloudlogistics.stores.ShipmentAlertStore', { | |
| model: 'cloudlogistics.models.ShipmentAlert', | |
| data: [{ | |
| "name": "Shipment is late" | |
| },{ | |
| "name": "Shipment delivered" | |
| },{ | |
| "name": "Shipment arrive in 2 hours" | |
| },{ | |
| "name": "Shipment lost" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'spec_helper' | |
| require 'rake' | |
| DOMAIN = CONNECTION_PARAMS[:domain_name] | |
| def delete_domain_if_exist | |
| ActiveRecord::Base.establish_connection(CONNECTION_PARAMS) | |
| con = ActiveRecord::Base.connection | |
| con.delete_domain(DOMAIN) if con.list_domains.include? DOMAIN | |
| end |
NewerOlder