Skip to content

Commit d986f29

Browse files
Fix ERB syntax for development server connection
When uncommenting the line (at the first hash), one would expect `connect_to_development_server` to reflect the result of `Rails.env.development?`, unless catching that the intended echo statement later in the same line was _also_ commented out. For the expected behavior, the `<%#` needs to also be uncommented as `<%=`, which is easy to miss and difficult to debug. Fixes #54.
1 parent cb24a27 commit d986f29

File tree

1 file changed

+1
-1
lines changed
  • lib/generators/action_push_native/install/templates/config

1 file changed

+1
-1
lines changed

lib/generators/action_push_native/install/templates/config/push.yml.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ shared:
2121
# Please note that anything built directly from Xcode and loaded on your phone will have
2222
# the app generate DEVELOPMENT tokens, while everything else (TestFlight, Apple Store, ...)
2323
# will be considered as PRODUCTION environment.
24-
# connect_to_development_server: <%%# Rails.env.development? %>
24+
# connect_to_development_server: <%%= Rails.env.development? %>
2525

2626
# Use bin/rails credentials:edit to set the fcm secrets (as action_push_native:fcm:encryption_key)
2727
google:

0 commit comments

Comments
 (0)