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
# see https://github.com/rails/rails/issues/14125#issuecomment-44547905 | |
# for clues about the Rails 4.1 specific changes | |
class PdfRenderer < AbstractController::Base | |
include ActionController::Helpers | |
include AbstractController::Rendering | |
include ActionView::Layouts | |
append_view_path "#{Rails.root}/app/views" |
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
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.scribePluginIntelligentUnlinkCommand=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
var baseIndexOf = require('../internals/baseIndexOf'), forOwn = require('../objects/forOwn'), isArray = require('../objects/isArray'), isString = require('../objects/isString'); | |
var nativeM |
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
ko.bindingHandlers.childVm = { | |
init: function(element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) { | |
var vmName = ko.unwrap(valueAccessor()), | |
childVm; | |
childVm = ko.utils.arrayFirst(viewModel._childVms(), function(item) { | |
return item._viewmodelName() === vmName; | |
}); | |
// 'with' returns {controlsDescendants: true}, so we have to pass it up - otherwise, |