Sha256: 42150f9f46382138afd9553f47bc46e888350389574d571e5c3edca01e1ff85b
Contents?: true
Size: 513 Bytes
Versions: 15
Compression:
Stored size: 513 Bytes
Contents
class Tramway::Core::ExtendedApplicationForm < Tramway::Core::ApplicationForm class << self def properties(*args) @@extendable_properties ||= [] @@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
15 entries across 15 versions & 1 rubygems