Integration of module_app workflow
This commit is contained in:
1 parent
65349796d0
commit
dac6348402
8 files changed
+71
-8
No files matched your search
@@ -35,6 +35,8 @@ class CentralServerExchangeApp < Sinatra::Base
|
||||
case params[:type]
|
||||
when 'Design'
|
||||
purchase = PDesign.new.from_json(private_key.private_decrypt(request.params['purchase']))
|
||||
when 'ModuleApp'
|
||||
purchase = PModuleApp.new.from_json(private_key.private_decrypt(request.params['purchase']))
|
||||
end
|
||||
|
||||
purchase.save
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ namespace :dev do
|
||||
include
|
||||
end.each(&:drop)
|
||||
|
||||
Site.create( :school => 'The Best School', :department => 'Awesome', :valid_locales => [ 'en', 'zh_tw' ], :in_use_locales => [ 'zh_tw', 'en' ])
|
||||
Site.create( :school => 'RulingDigital Universitry', :department => 'Computer Science', :valid_locales => [ 'en', 'zh_tw' ], :in_use_locales => [ 'zh_tw', 'en' ])
|
||||
|
||||
user = User.new( :email => 'chris@rulingcom.com', :password => 'password', :password_confirmation => 'password', :admin => true, :active_role => 'teacher')
|
||||
user.user_roles.build(:key => 'teacher', :discipline_en => 'Database', :discipline_zh_tw => '資料庫' )
|
||||
|
||||
Reference in new issue
Block a user