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
import UploadAdapter from './upload_adapter'; | |
function CustomUploadAdapterPlugin( editor ) { | |
editor.plugins.get( 'FileRepository' ).createUploadAdapter = ( loader ) => { | |
// Configure the URL to the upload script in your back-end here! | |
return new UploadAdapter( loader, editor ); | |
}; | |
} | |
import { Controller } from "stimulus" |
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
class JmxController < ApplicationController | |
DATA_DIR = "/path/to/jmx/data/" | |
VERIFY_TOKEN = "hoge" | |
# application_controller 内の | |
# "protect_from_forgery with: :exception" | |
# を無効にする設定 | |
# (ワーニングが出力されないようにするため) | |
skip_before_filter :verify_authenticity_token |