This file contains 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
<script> | |
import { onMount } from 'svelte'; | |
/** @type {string} gtmId - GTM ID 'GTM-F00BARS'. */ | |
export let gtmId = ''; | |
/** @type {(Object[]|Object)} [gtmDataPoints=[]] - Array or single object of custom data points for dataLayer. | |
* @type {Object} [gtmDataPoints[]] - Custom data point Object. | |
* @type {string} [gtmDataPoints[][]] - Custom data point property. */ | |
export let gtmDataPoints = []; | |
/** @type {number} [timeout] - The number of milliseconds to timeout intiating loading the GTM script from Google */ |
This file contains 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 'pp' | |
class Object | |
def mutate | |
Mutagen.new(self) | |
end | |
end | |
class Mutagen < BasicObject | |
def initialize(collection) |
This file contains 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
class ActionDispatch::Routing::Mapper | |
def draw(routes_name) | |
instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb"))) | |
end | |
end | |
BCX::Application.routes.draw do | |
draw :api | |
draw :account | |
draw :session |