app/controllers/mtdevise/application_controller.rb in mtdevise-1.7.11 vs app/controllers/mtdevise/application_controller.rb in mtdevise-1.8.0

- old
+ new

@@ -35,16 +35,24 @@ if request.subdomain.present? && Account.where(subdomain: request.subdomain).blank? redirect_to mtdevise.root_url(subdomain: false), notice: "Subdomain Doesn't Exist. Would you like to Register." end end - # Resolve Layouts Devise & Application Controller - def layouts_rsolver + # Resolve Layouts for Custom Account Actions + def layouts_resolver_accounts case action_name when "index" "layouts/mtdevise/accountsindex" - else - "layouts/mtdevise/accounts" + when "new" + "layouts/mtdevise/signup" + end + end + + # Resolve Layouts for Custom User Actions + def layouts_resolver_users + case action_name + when "new" + "layouts/mtdevise/signup" end end end