After this fix application config become available when calling helper outisde of view config/application.rb #... config.asset_host = 'http://mycdn.com'; #... Somewhere else ActionController::Base.helpers.asset_path('fallback.png') # => http://mycdn.com/assets/fallback.png
Correct error in Utils.normalize_path that changed paths improperly
[ci skip] second parameter of asset-url is deprecated
…me_range_error Let validates_inclusion_of accept Time and DateTime ranges
fixes 4.0.0 regression introduced in 0317b93
Make the application name snake cased when it contains spaces
The application name is used to fill the `database.yml` and `session_store.rb` files ; previously, if the provided name contained whitespaces, it led to unexpected names in these files. Since Shellwords.escape adds backslashes to escape spaces, the app_name should remove them and replace any space with an underscore (just like periods previously). Also improve the assert_file helper to work with paths containing spaces using String#shellescape.
This lets us avoid the constant calls to Array#<<
* master: (23 commits) Escape the parentheses in the default function regexp Update docs on Tilt::Template in Asset Pipeline guide Fix loading a sql structure file on postgres when the file's path has whitespace in it remove trailing whitespace added with b057765 [ci skip]. Allow unscope to work with `where.not` Raise an exception when model without primary key calls .find_with_ids Process sub-query relation's binding values Instrument the generation of Action Mailer messages Remove extra variable creation and merge. In Relation#empty? use #exists? instead of #count. [ci skip] avoid deprecation warning in sample code Convert Fixnum into String the port number in MySQL Fix some indentation on autosave association Make define_non_cyclic_method simpler Add Sass gobbling info to asset pipeline docs Ensure the state is clean after one failure Fix typo in form_helper.rb add a new local variable to track if digests are being stored, to ensure the cleanup works correctly [ci skip] Fix number of methods added by association. update digestor code based on review ...
…ared_sql Inline bind values for sub-queries generated for Relation in where Conflicts: activerecord/CHANGELOG.md
This is causing every default value in PostreSQL database to being handled as default function. Fixes #12581
Fix loading a sql structure file on postgres when the file's path has whitespace in it
…-docs Update docs on Tilt::Template in Asset Pipeline guide
… whitespace in it
Allow unscope to work with `where.not`