Sha256: 88f8ac37942843d59813c61778a174d59c51e64c6dbb7c6c5e15818b1593ff11
Contents?: true
Size: 900 Bytes
Versions: 56
Compression:
Stored size: 900 Bytes
Contents
module ActiveScaffold::Config class Subform < Base def initialize(core_config) super @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
56 entries across 56 versions & 3 rubygems