Sha256: 54a572e4036b9e6b65091ec08c2411ef208609e0bc013f2d038f407951740d4d
Contents?: true
Size: 615 Bytes
Versions: 4
Compression:
Stored size: 615 Bytes
Contents
module Admin end 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 end
Version data entries
4 entries across 4 versions & 1 rubygems