https://gist.github.com/dancheskus/365e9bc49a73908302af19882a86ce52
В результате будет 2 react проекта на 1 сервере доступных по разным ссылкам
https://gist.github.com/dancheskus/365e9bc49a73908302af19882a86ce52
В результате будет 2 react проекта на 1 сервере доступных по разным ссылкам
| task :up do | |
| update_items = [ | |
| [ "src", "fl", "engine/src/fl" ], | |
| [ "tools", "FlashExporter*.air", "exporter/distrib/*.air" ], | |
| [ "html/js", "pixi", "engine/html/js/pixi" ], | |
| [ "typings", "pixi.js", "engine/typings/pixi.js" ], | |
| ] | |
| src_list = [ | |
| "../flashtml", |
| 'use strict'; | |
| const tagpanda = {}; | |
| tagpanda.fullscreen = { | |
| d: document, | |
| __availableFullscreen__: null, |
| uk: | |
| errors: | |
| messages: | |
| expired: "прострочено, створіть новий" | |
| not_found: "не знайдено" | |
| already_confirmed: "вже було підтверджено, спробуйте увійти" | |
| not_locked: "не було заблоковано" | |
| not_saved: | |
| one: "Виникла помилка, через яку неможливо зберегти зміни:" | |
| other: "Виникли помилки (загалом - %{count}), через які неможливо зберегти зміни:" |
It's pretty easy to do polymorphic associations in Rails: A Picture can belong to either a BlogPost or an Article. But what if you need the relationship the other way around? A Picture, a Text and a Video can belong to an Article, and that article can find all media by calling @article.media
This example shows how to create an ArticleElement join model that handles the polymorphic relationship. To add fields that are common to all polymorphic models, add fields to the join model.