| Class | OtherController |
| In: |
test/functional/other_controller_test.rb
app/controllers/other_controller.rb |
| Parent: | Object |
Action info displays information this application
# File app/controllers/other_controller.rb, line 22
22: def about
23: @version = db_script_version(ENV['EPFWIKI_ROOT_DIR'] + "db/migrate")
24: @database_schema = User.find_by_sql('select version from schema_info')[0]
25: if @database_schema.version.to_s == @version.to_s
26: @version = nil
27: else
28: flash.now['warning'] = "Database seems out-of-date. Available scripts are of a higher version. Available is " + @version.to_s + ", installed is " + @database_schema.version.to_s
29: end
30: end