Split dashboard into single and multiple enterprise views

This commit is contained in:
Rob Harrington
2014-10-22 12:16:28 +11:00
parent b75af8d9ff
commit 8bf472e970
6 changed files with 83 additions and 24 deletions

View File

@@ -19,6 +19,10 @@ Spree.user_class.class_eval do
end
end
def manages_one_enterprise?
enterprises.length == 1
end
def send_signup_confirmation
Spree::UserMailer.signup_confirmation(self).deliver
end