Top Level Namespace

Defined Under Namespace

Modules: ActionController, ActionView, ActionsHelper, ActiveRecord, ActiveRecordPermissions, ActiveScaffold, ApplicationHelper, AppsettingsHelper, ClassLevelInheritableAttributes, Components, DependentmodsHelper, FileColumnHelpers, Goldberg, InPlaceEditing, InPlaceMacrosHelper, LogsHelper, LogsessionsHelper, LogviewsHelper, MainHelper, ModelStubs, ModsHelper, NetworksHelper, QueryserversHelper, Rails, RaveEmbed, RecordSelect, RecordSelectHelper, RepositoriesHelper, RespondsToParent, ServersHelper, Six, SixUpdaterWeb, SixconfigsHelper, Sixsense, SystemSettingsHelper Classes: Action, ActionColumnsTest, ActionLinkTest, ActionLinksTest, ActionTest, ActionsController, ActionsControllerTest, ActionsHelperTest, ActionsTest, ActiveRecordPermissionsTest, ActiveRecordTest, ActiveScaffoldGenerator, AddBetaToAppsettings, AddBetaToSystemSettings, AddDefaultsToType, AddFieldsToQueryservers, AddGamespiedAtToSystemSettings, AddInclAndExclToMods, AddLogpathToAppsetting, AddMoreIndexes, AddPriorityAndPathToMods, AddQueryserverToSixconfigs, AddSavedPasswordToQueryservers, AddServerBoolToSystemSettings, AddServerToAppsettings, AddTypeToModsAndAppsettings, ApplicationController, Appsetting, AppsettingsController, Arma2Appsetting, Arma2CaAppsetting, Arma2CaMod, Arma2Mod, Arma2OaAppsetting, Arma2OaCoAppsetting, Arma2OaCoMod, Arma2OaMod, Arma2OaStAppsetting, Arma2OaStMod, Arma2StAppsetting, Arma2StMod, Array, ArrayTest, AssociationColumnTest, BrowsingTest, CalleeController, CallerController, CategoriesController, Category, Change2Columns, Change2ColumnsAppsettings, Change2ColumnsMods, Change2ColumnsSystemSettings, Change3ColumnsMods, Change3ColumnsSystemSettings, ChangeColumns, ChangeColumnsAppsettings, ChangeColumnsMods, ChangeColumnsRepositories, ChangeColumnsSystemSettings, ChangeModsQueryserversId, ChangeRepositoriesColumn, ClassWithFinder, ColumnFixes, ColumnTest, ColumnsTest, ComponentsTest, ConfigController, ConfigTest, ConfigsControllerTest, ConfigsHelperTest, ConfigurableClass, ConfigurableTest, ConstMocker, ConstraintsTest, ConstraintsTestObject, ContentPageTest, ContentPagesControllerTest, ControllerActionTest, CreateActions, CreateAppsettings, CreateCategories, CreateDependentmods, CreateLogs, CreateLogsessions, CreateMods, CreateModsQueryservers, CreateNetworks, CreateQueryservers, CreateRepositories, CreateServers, CreateSessions, CreateSixconfigs, CreateSystemSettings, DHTMLConfirm, DeleteFileColumnTest, DependentmodTest, DependentmodsControllerTest, DependentmodsHelperTest, ErrCounter, ErrorMessageTest, FinderTest, InPlaceEditingTest, InitialSetup, LocalizationTest, Log, LogObserver, LogTest, LogsController, LogsControllerTest, LogsHelperTest, Logsession, LogsessionTest, LogsessionsController, LogsessionsControllerTest, LogsessionsHelperTest, LogviewsController, LogviewsControllerTest, LogviewsHelperTest, MainController, MainControllerTest, MainHelperTest, MenuItemTest, MenuRestItemsUsersCachedContentPages, MockModel, Mod, ModTest, ModelStub, ModsController, ModsControllerTest, ModsHelperTest, Network, NetworkTest, NetworksController, NetworksControllerTest, NetworksHelperTest, Nil, Object, Paginator, PermissionModel, PermissionTest, Queryserver, QueryserverTest, QueryserversController, QueryserversControllerTest, QueryserversHelperTest, RecordselectTest, RemoveIdFromDependentmods, RepositoriesController, RepositoriesControllerTest, RepositoriesHelperTest, Repository, RepositoryTest, Rv2Appsetting, Rv2Mod, Rv3Appsetting, Rv3Mod, Rv4Appsetting, Rv4Mod, RvAppsetting, RvMod, ScaffoldingSandbox, SecurityTest, SelfRegistration, Server, ServerTest, ServersController, ServersControllerTest, ServersHelperTest, SetTest, SettingTest, SettingsControllerTest, SettingsHelperTest, SiteControllerTest, Sixconfig, SixconfigsController, SortingTest, StandardColumnTest, String, SystemSetting, SystemSettingTest, SystemSettingsController, SystemSettingsControllerTest, SystemSettingsHelperTest, SystemSettingsTest, TakeonhAppsetting, TakeonhMod, TakeonhRaA2Appsetting, TakeonhRaA2Mod, TakeonhRaAppsetting, TakeonhRaCoAppsetting, TakeonhRaCoMod, TakeonhRaMod, TakeonhRaOaAppsetting, TakeonhRaOaMod, TakeonhStAppsetting, TakeonhStMod, UserTest, VirtualColumnTest

Instance Method Summary collapse

Instance Method Details

#create_modelObject



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/six-updater-web/vendor/plugins/activescaffold_advanced_search/install.rb', line 33

def create_model
  # Install model
  if Dir["db/migrate/*_create_saved_advanced_searches.rb"].empty?
    system "script/generate model SavedAdvancedSearch name:string model_name:string query:text valid:boolean"
  
    system "rake db:migrate"
  else
    # In this case the model was already generated in the database, since we are
    # unable to drop the table in the database in a reliable manner we have to assume it still exists
    # so we do not create a migration, and we do not migrate
    system "script/generate model --skip-migration SavedAdvancedSearch name:string model_name:string query:text valid:boolean"
  end
  
  puts "Model SavedAdvancedSearch should exist"
end

#dbgObject



1
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/bridges/bridge_test.rb', line 1

def dbg; require "ruby-debug"; debugger; end

#dirnameObject

Install ActiveScaffold assets into /public



5
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/install.rb', line 5

require File.dirname(__FILE__) + '/install_assets'

#fileutilsObject

Delete public asset files



5
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/uninstall.rb', line 5

require 'fileutils'

#load_fixture(filename) ⇒ Object



11
12
13
# File 'lib/six-updater-web/vendor/plugins/rave_embed/spec/spec_helper.rb', line 11

def load_fixture(filename)
  File.read(File.dirname(__FILE__) + '/fixtures/' + filename)
end

#require_relative(rb) ⇒ Object



13
14
15
# File 'lib/six-updater-web/config/environment.rb', line 13

def require_relative(rb)
  require File.join(File.dirname(__FILE__), rb)
end