Sha256: fd9aee6d1810682579270315e2df5014ca977caa5bf3810eabad52443b0d53ae

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

#	Due to some flexibility mods to CalnetAuthenticated
#	User doesn't load until it is needed, 
#	which means that calnet_authenticated isn't called,
#	which means that current_user doesn't know what 
#	a User is yet, which causes lots of ...
#	NoMethodError (undefined method `find_create_and_update_by_uid' for nil:NilClass):
#	so ...


# no longer necessary?
#unless Gem.source_index.find_name('ccls-ccls_engine').empty?
#	gem 'ccls-ccls_engine'
#	require '<%#=class_name.underscore-%>' unless defined?(<%#=class_name-%>)
#end


#require 'user' unless defined?(User)
#if RAILS_ENV == 'development' &&
#	!Gem.source_index.find_name('ccls-ccls_engine').empty?
#if Gem.searcher.find('ccls_engine') && RAILS_ENV == 'development'
#require 'ccls_engine'	#	without this, rake has problems ...
#undefined local variable or method `ucb_authenticated' for #<Class:0x1059408d0>
#require '<%#=class_name.underscore-%>' unless defined?(<%#=class_name-%>)
#require 'role' unless defined?(Role)
#end
#	Actually, this is probably only needed in development,
#	but putting it in environments/development.rb doesn't
#	work right, even in an after_initialize.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ccls-ccls_engine-3.11.0 generators/ccls_engine/templates/initializer.rb