Sha256: aff28e549a7860c07f1d0fe37d5449e4410e87e5e99343ad7b73e2beb32d7a99
Contents?: true
Size: 914 Bytes
Versions: 65
Compression:
Stored size: 914 Bytes
Contents
module ActiveScaffold::Config class Subform < Base def initialize(core_config) @core = core_config @layout = self.class.layout # default layout end # global level configuration # -------------------------- cattr_accessor :layout @@layout = :horizontal # instance-level configuration # ---------------------------- attr_accessor :layout # provides access to the list of columns specifically meant for the Sub-Form to use def columns # we want to delay initializing to the @core.update.columns set for as long as possible. but we have to eventually clone, or else have a configuration "leak" unless @columns if @core.actions.include? :update @columns = @core.update.columns.clone else self.columns = @core.columns._inheritable end end @columns end public :columns= end end
Version data entries
65 entries across 65 versions & 4 rubygems