lib/scaffolding_extensions/meta_model.rb
# If the auto complete options have been setup, return them.  Otherwise,
# create the auto complete options using the defaults and the existing
# class instance variable.  Can be set as an instance variable.
If the auto complete options have been setup, return them.  Otherwise,
create the auto complete options using the defaults and the existing
class instance variable.  Can be set as an instance variable.
If the auto complete options have been setup return them . Otherwise create the auto complete options using the defaults and the existing class instance variable . Can be set as an instance variable .
def scaffold_auto_complete_options
      return @scaffold_auto_complete_options if @scaffold_auto_complete_options && @scaffold_auto_complete_options[:setup]
      @scaffold_auto_complete_options = @scaffold_auto_complete_options.nil? ? {} : {:enable=>true}.merge(@scaffold_auto_complete_options)
      @scaffold_auto_complete_options = SCAFFOLD_OPTIONS[:auto_complete].merge(@scaffold_auto_complete_options)
      @scaffold_auto_complete_options[:setup] = true
      @scaffold_auto_complete_options
    end
def scaffold_auto_complete_options return @scaffold_auto_complete_options if @scaffold_auto_complete_options && @scaffold_auto_complete_options [ :setup ] @scaffold_auto_complete_options = @scaffold_auto_complete_options . nil? ? { } : { :enable => true } . merge ( @scaffold_auto_complete_options ) @scaffold_auto_complete_options = SCAFFOLD_OPTIONS [ :auto_complete ] . merge ( @scaffold_auto_complete_options ) @scaffold_auto_complete_options [ :setup ] = true @scaffold_auto_complete_options end
If the auto complete options have been setup, return them.
If the auto complete options have been setup return them .