# frozen_string_literal: true class Tramway::ExtendedApplicationForm < Tramway::ApplicationForm class << self def properties(*args) @@extendable_properties ||= [] @@extendable_properties += args super(*args) end end def initialize(model) @@extendable_properties.each do |prop| next if model.respond_to? prop model.class.define_method prop do end model.class.define_method "#{prop}=" do |value| end end super end end