Sha256: f95fe2257b234e028a3ef5324ec68bc708763334272096b7d18fa4f4ccd0e364

Contents?: true

Size: 687 Bytes

Versions: 10

Compression:

Stored size: 687 Bytes

Contents

class Admin::BaseController < ApplicationController
  cattr_accessor :look_for_migrations
  @@look_for_migrations = true

  layout 'administration'
  before_filter :login_required, :except => [ :login, :signup ]
  before_filter :look_for_needed_db_updates, :except => [:login, :signup, :update_database, :migrate]

  cache_sweeper :blog_sweeper

  private

  def look_for_needed_db_updates
    if Migrator.offer_migration_when_available
      redirect_to :controller => '/admin/general', :action => 'update_database' if Migrator.current_schema_version != Migrator.max_schema_version
    end
  end

  include_protected ActionView::Helpers::TagHelper, ActionView::Helpers::TextHelper

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
typo-3.99.0 app/controllers/admin/base_controller.rb
typo-3.99.1 app/controllers/admin/base_controller.rb
typo-3.99.2 app/controllers/admin/base_controller.rb
typo-3.99.3 app/controllers/admin/base_controller.rb
typo-4.0.1 app/controllers/admin/base_controller.rb
typo-4.0.0 app/controllers/admin/base_controller.rb
typo-3.99.4 app/controllers/admin/base_controller.rb
typo-4.0.2 app/controllers/admin/base_controller.rb
typo-4.0.3 app/controllers/admin/base_controller.rb
typo-4.1 app/controllers/admin/base_controller.rb