Added Array.prototype.indexOf polyfill.
Wrap one-line if into {}.
setup! uses has_asset_pipeline? instead of Rails.version
Merge pull request #152 from bspaulding/fix-setup-no-pipeline

setup! uses has_asset_pipeline? instead of Rails.version