Skip to content

Instantly share code, notes, and snippets.

/**
* Converts a map of action keys into redux-dispatchable string values,
* so you don't have to type the action name a bunch of times.
*
* Example:
*
* let actions = {
* EAT_TACO: null,
* EAT_BURRITO: null,
*
/**
* Loads a DuckEntityForm and pre-populates it with the value from a singleDuck
*
* Note that you need to map the form properties into your component props separately using mapStateToProps. i.e.
*
* const tacos = DuckEntity();
* const tacoForm = DuckEntityForm();
*
* function mapDucksToProps (props) {
/**
* Converts a map of action keys into redux-dispatchable string values,
* so you don't have to type the action name a bunch of times.
*
* Example:
*
* let actions = {
* EAT_TACO: null,
* EAT_BURRITO: null,
*
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
class NormalizeUserNames < ActiveRecord::Migration
def self.up
total_customers = Customer.count
Customer.all.each_with_index do |customer, index|
puts " [#{index + 1}/#{total_customers}] #{customer.subdomain}"
System.with_customer(customer) do
User.silo.each do |u|
u.first_name = u.first_name.strip