vendor/plugins/active_scaffold/lib/active_scaffold/config/form.rb in brisk-bills-0.7.0 vs vendor/plugins/active_scaffold/lib/active_scaffold/config/form.rb in brisk-bills-0.8.1

- old
+ new

@@ -1,10 +1,9 @@ module ActiveScaffold::Config class Form < Base def initialize(core_config) - @core = core_config - + super # start with the ActionLink defined globally @link = self.class.link.clone # no global setting here because multipart should only be set for specific forms @multipart = false @@ -19,13 +18,10 @@ # the ActionLink for this action attr_accessor :link # the label for this Form action. used for the header. attr_writer :label - def label - as_(@label) - end # provides access to the list of columns specifically meant for the Form to use def columns unless @columns # lazy evaluation self.columns = @core.columns._inheritable @@ -33,13 +29,10 @@ self.columns.exclude *@core.columns.collect{|c| c.name if c.polymorphic_association?}.compact end @columns end - def columns=(val) - @columns = ActiveScaffold::DataStructures::ActionColumns.new(*val) - @columns.action = self - end + public :columns= # whether the form should be multipart attr_writer :multipart def multipart? @multipart ? true : false