Module: Goldberg

Defined in:
lib/six-updater-web/vendor/plugins/goldberg/lib/goldberg.rb,
lib/six-updater-web/vendor/plugins/goldberg/lib/goldberg/model.rb,
lib/six-updater-web/vendor/plugins/goldberg/lib/goldberg/helper.rb,
lib/six-updater-web/vendor/plugins/goldberg/lib/goldberg/routes.rb,
lib/six-updater-web/vendor/plugins/goldberg/lib/goldberg/filters.rb,
lib/six-updater-web/vendor/plugins/goldberg/lib/goldberg/migrator.rb,
lib/six-updater-web/vendor/plugins/goldberg/lib/goldberg/migration.rb,
lib/six-updater-web/vendor/plugins/goldberg/lib/goldberg/controller.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/models/goldberg/menu.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/models/goldberg/role.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/models/goldberg/user.rb,
lib/six-updater-web/vendor/plugins/goldberg/lib/goldberg/test_helper.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/models/goldberg/menu_item.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/models/goldberg/permission.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/models/goldberg/credentials.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/models/goldberg/user_mailer.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/helpers/goldberg/auth_helper.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/models/goldberg/content_page.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/helpers/goldberg/roles_helper.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/helpers/goldberg/users_helper.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/models/goldberg/site_controller.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/models/goldberg/system_settings.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/models/goldberg/roles_permission.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/models/goldberg/controller_action.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/helpers/goldberg/menu_items_helper.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/helpers/goldberg/permissions_helper.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/controllers/goldberg/auth_controller.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/controllers/goldberg/roles_controller.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/controllers/goldberg/users_controller.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/helpers/goldberg/content_pages_helper.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/helpers/goldberg/system_settings_helper.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/helpers/goldberg/site_controllers_helper.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/helpers/goldberg/roles_permissions_helper.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/controllers/goldberg/menu_items_controller.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/helpers/goldberg/controller_actions_helper.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/controllers/goldberg/permissions_controller.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/controllers/goldberg/content_pages_controller.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/controllers/goldberg/system_settings_controller.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/controllers/goldberg/site_controllers_controller.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/controllers/goldberg/roles_permissions_controller.rb,
lib/six-updater-web/vendor/plugins/goldberg/app/controllers/goldberg/controller_actions_controller.rb

Overview

This code used to be based on PluginAWeek’s plugin_migrations, but has been re-written for the new “schema_migrations” system provided by Rails 2.1.

Defined Under Namespace

Modules: AuthHelper, ContentPagesHelper, Controller, ControllerActionsHelper, Filters, Helper, MenuItemsHelper, Migration, Model, PermissionsHelper, PostgreSQL, RolesHelper, RolesPermissionsHelper, Routes, SchemaStatements, SiteControllersHelper, SystemSettingsHelper, TestHelper, UsersHelper Classes: AuthController, ContentPage, ContentPagesController, ControllerAction, ControllerActionsController, Credentials, Menu, MenuItem, MenuItemsController, Migrator, Permission, PermissionsController, Role, RolesController, RolesPermission, RolesPermissionsController, SiteController, SiteControllersController, SystemSettings, SystemSettingsController, User, UserMailer, UsersController

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.credentialsObject

Accessor to attach the session’s credentials



13
14
15
# File 'lib/six-updater-web/vendor/plugins/goldberg/lib/goldberg.rb', line 13

def credentials
  @credentials
end

Accessor to attach the session’s menu



16
17
18
# File 'lib/six-updater-web/vendor/plugins/goldberg/lib/goldberg.rb', line 16

def menu
  @menu
end

.userObject

return nil if there is no user



10
11
12
# File 'lib/six-updater-web/vendor/plugins/goldberg/lib/goldberg.rb', line 10

def user
  @user
end

Class Method Details

.clear!Object



28
29
30
31
32
33
# File 'lib/six-updater-web/vendor/plugins/goldberg/lib/goldberg.rb', line 28

def clear!
  @user = nil
  @credentials = nil
  @menu = nil
  @settings = nil
end

.settingsObject

Return Goldberg’s System Settings



24
25
26
# File 'lib/six-updater-web/vendor/plugins/goldberg/lib/goldberg.rb', line 24

def settings
  @settings ||= Goldberg::SystemSettings.find(:first)
end