Sha256: be493475be1fa948906836fec698cad2de1d39859624d746832cf5bb56998d2d
Contents?: true
Size: 933 Bytes
Versions: 32
Compression:
Stored size: 933 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 @columns.action = self else self.columns = @core.columns._inheritable end end @columns end public :columns= end end
Version data entries
32 entries across 32 versions & 1 rubygems