Sha256: fff5ecbbc7d8d16bce3e123c8eaaf1303f38053fa8d08870653a543c691fa3a3
Contents?: true
Size: 475 Bytes
Versions: 1
Compression:
Stored size: 475 Bytes
Contents
class Tramway::Core::ExtendedApplicationForm < Tramway::Core::ApplicationForm class << self def properties(*args) @@extendable_properties = args super *args end end def initialize(model) @@extendable_properties.each do |prop| unless model.respond_to? prop model.class.define_method prop do end model.class.define_method "#{prop}=" do |value| end end end super end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tramway-core-1.10.2.2 | app/forms/tramway/core/extended_application_form.rb |