Fix app_name.

Akinori MUSHA преди 11 години
родител
ревизия
f84a9c24eb
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/views/devise/registrations/new.html.erb

+ 1 - 1
app/views/devise/registrations/new.html.erb

@@ -9,7 +9,7 @@
9 9
           <%= devise_error_messages! %>
10 10
           <% if ENV['ON_HEROKU'] && User.count.zero? %>
11 11
           <div class="heroku-instruction">
12
-            <% app_name = request.host[/\A.+/] %>
12
+            <% app_name = request.host[/\A[^.]+/] %>
13 13
             <p>If you are the owner of this application, run the following commands to complete the setup.</p>
14 14
             <%= content_tag :pre do -%>
15 15
 heroku git:clone <%= app_name %>