mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 05:34:55 +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
|
class ApplicationController < ActionController::Base
|
||||||
include FirstTimeDataGenerator
|
|
||||||
|
|
||||||
acts_as_token_authentication_handler_for User
|
acts_as_token_authentication_handler_for User
|
||||||
# Prevent CSRF attacks by raising an exception.
|
# Prevent CSRF attacks by raising an exception.
|
||||||
# For APIs, you may want to use :null_session instead.
|
# For APIs, you may want to use :null_session instead.
|
||||||
|
|
|
@ -295,6 +295,8 @@ class ProjectsController < ApplicationController
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
include FirstTimeDataGenerator
|
||||||
|
|
||||||
def generate_intro_demo
|
def generate_intro_demo
|
||||||
return unless current_user.sign_in_count == 1
|
return unless current_user.sign_in_count == 1
|
||||||
team = current_user.teams.where(created_by: current_user).first
|
team = current_user.teams.where(created_by: current_user).first
|
||||||
|
|
Loading…
Add table
Reference in a new issue