lib/scaffolding_extensions/meta_controller.rb
# Setup resources used by both scaffold and scaffold_habtm.  Adds shared data structures that
# should only be initialized once.
Setup resources used by both scaffold and scaffold_habtm.  Adds shared data structures that
should only be initialized once.
Setup resources used by both scaffold and scaffold_habtm . Adds shared data structures that should only be initialized once .
def scaffold_setup
        return if @scaffolding_shared_resources_are_setup
        self.scaffolded_methods ||= Set.new
        self.scaffolded_nonidempotent_methods ||= Set.new
        self.scaffolded_auto_complete_associations ||= {}
        scaffold_setup_helper
        @scaffolding_shared_resources_are_setup = true
      end
def scaffold_setup return if @scaffolding_shared_resources_are_setup self . scaffolded_methods ||= Set . new self . scaffolded_nonidempotent_methods ||= Set . new self . scaffolded_auto_complete_associations ||= { } scaffold_setup_helper @scaffolding_shared_resources_are_setup = true end
Setup resources used by both scaffold and scaffold_habtm.
Setup resources used by both scaffold and scaffold_habtm .