mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:50:00 +08:00
FIX: seed data classes couldn't always be found
This commit is contained in:
parent
3fd04df781
commit
8a99d59422
|
@ -1,3 +1,6 @@
|
|||
require_dependency 'seed_data/categories'
|
||||
require_dependency 'seed_data/topics'
|
||||
|
||||
class Admin::SiteTextsController < Admin::AdminController
|
||||
|
||||
def self.preferred_keys
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
require 'seed_data/categories'
|
||||
|
||||
if !Rails.env.test?
|
||||
SeedData::Categories.with_default_locale.create
|
||||
end
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
require 'seed_data/topics'
|
||||
|
||||
User.reset_column_information
|
||||
Topic.reset_column_information
|
||||
Post.reset_column_information
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
require 'i18n/locale_file_checker'
|
||||
require 'seed_data/categories'
|
||||
require 'seed_data/topics'
|
||||
require 'colored2'
|
||||
|
||||
desc "Checks locale files for errors"
|
||||
|
|
Loading…
Reference in New Issue
Block a user