Skip to content

Instantly share code, notes, and snippets.

View gorkunov's full-sized avatar

Alex Gorkunov gorkunov

  • proSapient
  • London, UK
View GitHub Profile
def channels
@channels ||= begin
if defined?(self.superclass.channels)
self.superclass.channels.clone
else
{}
end
end
end
Ext.regStore('cloudlogistics.stores.ShipmentAlertStore', {
model: 'cloudlogistics.models.ShipmentAlert',
data: [
{
"name": "Shipment is late"
},{
"name": "Shipment delivered"
},{
"name": "Shipment arrive in 2 hours"
},{
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"
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