Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove turbolinks from application.js file #792

Merged
merged 1 commit into from
Jul 22, 2016
Merged

Remove turbolinks from application.js file #792

merged 1 commit into from
Jul 22, 2016

Conversation

tute
Copy link
Contributor

@tute tute commented Jul 22, 2016

Suspenders doesn't use turbolinks by default. It doesn't include it in
the Gemfile, but the generated application.js was trying to include
it, resulting in a failure.

This fix make sure a newly generated application doesn't include
the turbolinks reference.

[fixes #788]

@@ -43,6 +43,12 @@ def raise_on_delivery_errors
'raise_delivery_errors = false', 'raise_delivery_errors = true'
end

def remove_turbolinks
replace_in_file 'app/assets/javascripts/application.js',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

@mike-burns
Copy link
Contributor

Code LGTM.

replace_in_file(
"app/assets/javascripts/application.js",
"//= require turbolinks",
''

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Put a comma after the last parameter of a multiline method call.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Put a comma after the last parameter of a multiline method call.

Suspenders doesn't use turbolinks by default. It doesn't include it in
the Gemfile, but the generated `application.js` was trying to include
it, resulting in a failure.

This fix make sure a newly generated application doesn't include
the turbolinks reference.

[fixes #788]
@tute tute merged commit 1146e19 into master Jul 22, 2016
@tute tute deleted the tc-turbolinks branch July 22, 2016 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing turbolinks gem
3 participants