diff --git a/app/views/active_scaffold_overrides/_form_association_record.html.erb b/app/views/active_scaffold_overrides/_form_association_record.html.erb index 20e86dad2..e1bc217ea 100644 --- a/app/views/active_scaffold_overrides/_form_association_record.html.erb +++ b/app/views/active_scaffold_overrides/_form_association_record.html.erb @@ -52,11 +52,6 @@ next unless in_subform?(column, parent_record, record_column) columns_length += 1 show_actions = true - if !ActiveScaffold.nested_subforms && !readonly && column.association && column.form_ui.nil? - ActiveSupport::Deprecation.warn "Nested subforms are allowed now, set form_ui = :select for #{column.name} in controller for #{config.model.name}" - column = column.dup unless ActiveScaffold.threadsafe - column.form_ui = :select - end col_class = default_col_class.clone col_class << 'required' if column.required?(action_for_validation?(record)) diff --git a/lib/active_scaffold.rb b/lib/active_scaffold.rb index 13cd31e3f..fe1bfe60e 100644 --- a/lib/active_scaffold.rb +++ b/lib/active_scaffold.rb @@ -87,6 +87,9 @@ def self.exclude_bridges end mattr_accessor :nested_subforms, instance_writer: false + def nested_subforms=(*) + ActiveSupport::Deprecation.warn "Nested subforms are enabled by default already" + end def self.root File.dirname(__FILE__) + '/..' diff --git a/lib/active_scaffold/data_structures/action_links.rb b/lib/active_scaffold/data_structures/action_links.rb index 17ad89b2a..223577780 100644 --- a/lib/active_scaffold/data_structures/action_links.rb +++ b/lib/active_scaffold/data_structures/action_links.rb @@ -172,11 +172,6 @@ def respond_to_missing?(name, *) attr_accessor :weight attr_accessor :css_class - def name=(value) - ActiveSupport::Deprecation.warn "Changing name is deprecated, use css_class to change the class html attribute" - self.css_class = value - end - protected # called during clone or dup. makes the clone/dup deeper.