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
module DelegatedTypeAliasing | |
extend ActiveSupport::Concern | |
class_methods do | |
def delegated_type(role, types:, **options) | |
if types.is_a?(Hash) | |
aliases = types.stringify_keys! | |
types = types.keys | |
elsif options.delete(:demodulized_aliases) | |
aliases = generate_delegated_type_demodulized_aliases(types) |
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
Is this account in use? If not I would love to use it. |
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
<html> | |
<body> | |
<div data-controller="select-navigation"> | |
<select data-action="change->select-navigation#navigate"> | |
<option selected="selected" value="path/to/0">0</option> | |
<option value="path/to/1">1</option> | |
<option value="path/to/2">2</option> | |
</select> | |
<turbo-frame id="my_frame" data-select-navigation-target="frame"></turbo-frame> | |
</div> |
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
// | |
// ValidatedTextField.swift | |
// | |
// Created by Lee Hericks on 2019/02/08. | |
// | |
import UIKit | |
/** | |
A protocol for delegating the task of determining validation for `ValidatedTextField`. |