mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-03 13:41:12 +08:00
Merge pull request #1247 from ZmagoD/zd_SCI_2489
move FirstTimeDataGenerator helper from applictaion controller [SCI-2489]
This commit is contained in:
commit
53c287224b
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