FIX: seed data classes couldn't always be found

This commit is contained in:
Gerhard Schlager 2019-03-18 23:13:47 +01:00
parent 3fd04df781
commit 8a99d59422
4 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,6 @@
require_dependency 'seed_data/categories'
require_dependency 'seed_data/topics'
class Admin::SiteTextsController < Admin::AdminController
def self.preferred_keys

View File

@ -1,3 +1,5 @@
require 'seed_data/categories'
if !Rails.env.test?
SeedData::Categories.with_default_locale.create
end

View File

@ -1,3 +1,5 @@
require 'seed_data/topics'
User.reset_column_information
Topic.reset_column_information
Post.reset_column_information

View File

@ -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"