mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 03:59:51 +08:00
move FirstTimeDataGenerator helper from applictaion controller
This commit is contained in:
parent
0e9571c499
commit
29e0ecbc89
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,4 @@
|
|||
class ApplicationController < ActionController::Base
|
||||
include FirstTimeDataGenerator
|
||||
|
||||
acts_as_token_authentication_handler_for User
|
||||
# Prevent CSRF attacks by raising an exception.
|
||||
# For APIs, you may want to use :null_session instead.
|
||||
|
|
|
@ -295,6 +295,8 @@ class ProjectsController < ApplicationController
|
|||
|
||||
private
|
||||
|
||||
include FirstTimeDataGenerator
|
||||
|
||||
def generate_intro_demo
|
||||
return unless current_user.sign_in_count == 1
|
||||
team = current_user.teams.where(created_by: current_user).first
|
||||
|
|
Loading…
Reference in a new issue