Skip to content

Refactored code on the Railtie#91

Merged
indirect merged 2 commits intorails:masterfrom
batter:railtie_improvement
Dec 20, 2012
Merged

Refactored code on the Railtie#91
indirect merged 2 commits intorails:masterfrom
batter:railtie_improvement

Conversation

@batter
Copy link
Contributor

@batter batter commented Nov 26, 2012

The railtie code is currently executing the logic to build an array of javascript files (jq_defaults) to include in the javascript_expansions[:defaults] regardless of whether it's actually necessary.

This pull request contains modified code which prevents that block of code from being invoked if the user's rails application doesn't require it. (which is the case for rails apps that use the asset pipeline)

Ben Atkins added 2 commits October 15, 2012 11:23
…if the config.action_view.javascript_expansions option exists (since it does not in Rails 4).
@batter
Copy link
Contributor Author

batter commented Nov 26, 2012

The CHANGELOG modification can be ommitted from the merge of this pull, as it was already merged (in #81).

Copy link
Member

Choose a reason for hiding this comment

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

Don't undersell yourself! You also made this work at all, since the file is named jquery_ujs, and not rails. :)

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, or I could have misread the diff. Still, thanks for the patch! :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just condensing the logic from 2 lines (previously 20 & 21) into 1 line (20).

indirect added a commit that referenced this pull request Dec 20, 2012
Refactored code on the Railtie

Conflicts:
	CHANGELOG.md
@indirect indirect merged commit f06344b into rails:master Dec 20, 2012
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.

2 participants