aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Merge pull request #16434 from strzalek/cookies-digest-config-option"Santiago Pastorino2014-08-081-2/+1
| | | | | | | This reverts commit 705977620539e2be6548027042f33175ebdc2505, reversing changes made to dde91e9bf5ab246f0f684b40288b272f4ba9a699. IT BROKE THE BUILD!!!
* Merge pull request #16434 from strzalek/cookies-digest-config-optionSantiago Pastorino2014-08-081-1/+2
|\ | | | | Add digest config option for SignedCookiesJar
| * Return preconfigured AS::MessageVerifierŁukasz Strzałkowski2014-08-081-1/+1
| |
| * Add config option for cookies digestŁukasz Strzałkowski2014-08-081-0/+1
| | | | | | | | | | | | You can now configure custom digest for cookies in the same way as `serializer`: config.action_dispatch.cookies_digest = \SHA256'
* | save a hash allocation per request.Aaron Patterson2014-08-081-1/+1
| |
* | Fixes test for Gemfile entry changesArun Agrawal2014-08-082-2/+2
|/ | | | Broken by fbe38c9e9d4fe9f82518e8ffc1d757459b0c5f1c
* Pull spring gem entry into the Gemfile template instead of gemfile_entries ↵David Heinemeier Hansson2014-08-072-10/+12
| | | | so it can be grouped with the other development tools
* Merge branch 'master' of github.com:rails/railsDavid Heinemeier Hansson2014-08-074-10/+50
|\
| * add a new constructor that runs load hooksAaron Patterson2014-08-071-0/+4
| |
| * defer running after_config hooks until after the object is allocatedAaron Patterson2014-08-071-7/+22
| |
| * lazily instantiate application subclassesAaron Patterson2014-08-062-4/+8
| | | | | | | | this means we can meaningfully override methods in the subclass
| * Merge pull request #16359 from skanev/after-bundle-in-rails-templatesYves Senn2014-08-062-0/+17
| |\ | | | | | | | | | | | | | | | | | | Add an after_bundle callback in Rails templates Conflicts: railties/CHANGELOG.md
| | * Add an after_bundle callback in Rails templatesStefan Kanev2014-08-032-0/+17
| | | | | | | | | | | | | | | | | | The template runs before the generation of binstubs – this does not allow to write one, that makes an initial commit to version control. It is solvable by adding an after_bundle callback.
* | | Stop using padding in the generated Gemfile -- it looks shitDavid Heinemeier Hansson2014-08-072-6/+1
|/ /
* | Bring back the helpers testsJosé Valim2014-08-052-0/+11
| | | | | | | | | | Also keep the hook as other tools may rely on it, we just don't do anything by default on Rails.
* | Fix typo [ci skip]Jon Atack2014-08-041-1/+1
| |
* | Explain why we use asset digests, not what a setter doesDavid Heinemeier Hansson2014-08-032-2/+4
| |
* | Add suggestion as to how you can app the the assets load pathDavid Heinemeier Hansson2014-08-031-0/+3
| |
* | Pull in the custom configuration concept from dhh/custom_configurationDavid Heinemeier Hansson2014-08-031-1/+13
| |
* | A few more tests asserting the presence of helper test stubsDavid Heinemeier Hansson2014-08-032-5/+0
| |
* | Change the production log level default from :info to :debug. All production ↵David Heinemeier Hansson2014-08-031-2/+2
| | | | | | | | apps I have ever worked with has done this. Let us reflect that default. You often want those SQL quieries to be able to debug issues in production
* | Generating stubs for helper tests is overly specific. Most helpers should ↵David Heinemeier Hansson2014-08-033-21/+0
|/ | | | simply be tested as part of the view thats using them. If you need something beyond that, you can add a test yourself for them
* Deprecate `*_path` methods in mailers@schneems and @sgrif2014-07-301-1/+1
| | | | | | | | | | | Email does not support relative links since there is no implicit host. Therefore all links inside of emails must be fully qualified URLs. All path helpers are now deprecated. When removed, the error will give early indication to developers to use `*_url` methods instead. Currently if a developer uses a `*_path` helper, their tests and `mail_view` will not catch the mistake. The only way to see the error is by sending emails in production. Preventing sending out emails with non-working path's is the desired end goal of this PR. Currently path helpers are mixed-in to controllers (the ActionMailer::Base acts as a controller). All `*_url` and `*_path` helpers are made available through the same module. This PR separates this behavior into two modules so we can extend the `*_path` methods to add a Deprecation to them. Once deprecated we can use this same area to raise a NoMethodError and add an informative message directing the developer to use `*_url` instead. The module with warnings is only mixed in when a controller returns false from the newly added `supports_relative_path?`. Paired @sgrif & @schneems
* Give password_confirmation div the "field" class in erb form templatenoinkling2014-07-291-1/+1
|
* Additional clarification on password:digest in scaffold and model generator ↵noinkling2014-07-252-4/+16
| | | | help [ci skip]
* Add password:digest information to scaffold generator help text [ci skip]noinkling2014-07-251-1/+5
|
* Fix syntax errorRafael Mendonça França2014-07-231-1/+2
|
* Dev and edge application and plugins need to include i18n masterRafael Mendonça França2014-07-231-1/+2
|
* Set Psych as the YAML engine for RubiniusRobin Dupret2014-07-231-0/+9
| | | | | | | | | | Since the rubysl-yaml gem doesn't ship with Psych by default because of its dependency on libyaml, on Rubinius, the default engine is Syck. However, if we want to be able to run the application safely on different rubies, we need to make people using Rubinius rely on Psych. See http://git.io/uuLVag for further information.
* Merge branch 'rm-remove-mocha'Rafael Mendonça França2014-07-191-2/+4
|\ | | | | | | | | Conflicts: actionpack/test/abstract_unit.rb
| * Stop using mocha on app_rails_loader_testRafael Mendonça França2014-07-071-2/+4
| |
* | Merge pull request #16212 from ↵Rafael Mendonça França2014-07-181-1/+2
|\ \ | | | | | | | | | | | | | | | aantix/additional_migration_conflict_help_messaging Additional help messaging to help the user resolve a conflicted migration
| * | Modified migration conflict message to remove the string concatenation.Jim Jones2014-07-181-3/+3
| | |
| * | Added additional help messaging when there's scaffolding being generated and ↵Jim Jones2014-07-171-1/+2
| | | | | | | | | | | | | | | | | | a migration already exists for the resource. The user is now alerted that they are able to skip the conflicted migration file via the --skip option.
* | | Prefer to pass block when logging.Guo Xiang Tan2014-07-181-1/+1
|/ / | | | | | | | | | | | | | | The Logger by default includes a guard which checks for the logging level. By removing the custom logging guards, we can decouple the logging guard from the logging action to be done. This also follows the good practice listed on http://guides.rubyonrails.org/debugging_rails_applications.html#impact-of-logs-on-performance.
* | Keep quietly and capture undeprecated on your suiteRafael Mendonça França2014-07-151-0/+17
| |
* | Add Rails::Application#config_forRafael Mendonça França2014-07-151-0/+32
| | | | | | | | | | This is a convenience for loading configuration for the current Rails environment.
* | Add ability to extend `rails server` command options parserAndrey Chernih2014-07-111-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this change it will be possible to add additional options to the `option_parser` like this: require 'rails/commands/server' module Rails class Server < ::Rack::Server class Options def option_parser_with_open(options) parser = option_parser_without_open options parser.on('-o', '--open', 'Open in default browser') { options[:open] = true } parser end alias_method_chain :option_parser, :open end def start_with_open start_without_open do `open http://localhost:3000` if options[:open] end end alias_method_chain :start, :open end end
* | Merge pull request #13999 from jamox/update_rackAaron Patterson2014-07-081-2/+4
|\ \ | |/ |/| This updates rails to use edge rack
| * Upgraded rackJarmo Isotalo2014-05-191-2/+4
| | | | | | | | | | | | | | | | As Rack has some non backwards compatible changes added required modifications to keep behaviour in rails close to same as before. Also modified generators to include rack/rack for not yet released version of rack
* | Merge pull request #16046 from grosser/grosser/cleangenRafael Mendonça França2014-07-041-2/+1
|\ \ | | | | | | Do not load rails without loading bundler
| * | remove bundler magicgrosser2014-07-031-2/+1
| | |
* | | Display notice in index.html pages in scaffolded generated viewsArun Agrawal2014-07-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | As we are setting notice in destroy action we should display that For more information see https://github.com/rails/rails/pull/14044 And https://github.com/rails/jbuilder/pull/191 closes #14044
* | | Add configuration to enable mail previewsLeonard Garvey2014-07-011-2/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds `config.action_mailer.preview_enabled` This allows mail previewing to be enabled easily in non-development environments such as staging. The default is set to true for development so no changes should be required to existing Rails applications. The mail preview path can still be configured using the existing `config.action_mailer.preview_path` configuration option. Adding this avoids devs from having to do stuff like: https://gist.github.com/lengarvey/fa2c9bd6cdbeba96526a Update actionmailer/CHANGELOG with new configuration. Update configuring guide with new configuratation. Add `config.action_mailer.preview_path` to configuring guide.
* | Talk about config.assts.version move tooRafael Mendonça França2014-06-271-1/+1
| | | | | | | | Closes #15942
* | Require shellwords since it is dependecy of this fileRafael Mendonça França2014-06-261-0/+2
| | | | | | | | Closes #15919
* | Merge pull request #15885 from lucasmazza/lm-skip-routesRafael Mendonça França2014-06-241-2/+6
|\ \ | | | | | | Add a '--skip-routes' flag for the Controller generator.
| * | Add a '--skip-routes' flag for the Controller generator.Lucas Mazza2014-06-241-2/+6
| | | | | | | | | | | | | | | This way it is possible to skip the addition of the 'get "foo/bar"' routes when generating a controller.
* | | `:nodoc: all` does not remove the constants from the API. [ci skip]Yves Senn2014-06-241-2/+2
|/ / | | | | | | | | Need to add individual `:nodoc:` for nested classes / modules to completely remove the constants from the API.
* | Titling the model name in views generated by scaffold.Amit Suryavanshi2014-06-183-3/+3
| | | | | | | | | | eg. rails g scaffold UserProfile will have in index.html.erb "Listing User Profiles" rather than Listing user_profiles.