app/models/camaleon_cms/site.rb in camaleon_cms-2.0.3 vs app/models/camaleon_cms/site.rb in camaleon_cms-2.0.4
- old
+ new
@@ -263,13 +263,9 @@
user = self.users.admin_scope.create({email: 'admin@local.com', username: 'admin', password: 'admin', password_confirmation: 'admin'}) unless user.present?
post = pt.add_post({title: title, slug: slug, content: content, user_id: user.id, status: 'published'})
@nav_menu.append_menu_item({label: title, type: 'post', link: post.id})
end
end
-
- # default theme
- # self.themes.create(slug: PluginRoutes.system_info["default_template"])
- # self.set_option('_theme', PluginRoutes.system_info["default_template"])
end
# assign all users to this new site
def set_all_users
CamaleonCms::User.all.each do |user|