When is rails 4 release




















We now support channel specs in order to easily test your Action Cable channels. A channel spec pulls in ActionCable::Channel::TestCase , including all of the behavior and assertions that it provides, in addition to RSpec's own behavior and expectations. Rails 6 adds Action Mailbox for dealing with inbound emails.

RSpec Rails 4 adds support for mailbox specs using the Rails test helpers for mailboxes. If you use generators, there are some improvements: - The default hash syntax is now the Ruby 1.

If a developer passes a user input array, strings can result in unwanted route helper calls. In this version, we generate Base64 urlsafe-encoded CSRF tokens, which are inherently safe to transport. Atention : If you already upgraded your application to 5. Fix the MySQL adapter to always set the right collation and charset to the connection session.

Relations that have aliased select values AND a having clause that references an aliased select value would generate an error when include? Because the having clause is then referencing an aliased column that is no longer present in the simplified query, an ActiveRecord::InvalidStatement error was raised. This change adds an addition check to the condition that skips the simplified exists? Increment postgres prepared statement counter before making a prepared statement, so if the statement is aborted without Rails knowledge e.

Skip to content. Star Releases Tags. Tietew Fix Time. Ryuta Kamizono Require a path for config. Alex Ghiculescu Avoid having to store complex object in the default translation file.

Eileen M. Jean Boussier Support using replicas when using rails dbconsole. Christopher Thornton Restore connection pools after transactional tests. Bastian Bartmann Fix user-defined self. You should take notice of following things Manually close the stream after you are done streaming in the browser. Headers must be written first before writing anything to the client. You will need a concurrent Ruby web server, such as puma. All controllers that include ActionController::Live would be executed in another thread, so make sure your code is thread-safe.

Rails 4 and Hstore from Postgres 9. Cache Digests Russian Doll Caching Make it super easy to do Russian Doll-caching through key-based expiration with automatic dependency management of nested templates Routing Concerns In Rails 4, routing concerns has been added to the router. Rails3 code resources :posts do resources :comments end resources :articles do resources :comments resources :remarks end In rails4 the concern routes will only be included within a resource by passing it to the routing option :concerns.

Aware of any other not-so-obvious features? Please post it in the comments below. Tags: Ruby. Srikant M. Mohapatra anurag. Never Miss A Post. Thanks for subscribing Andolasoft Blog! Was this useful to you? Is this helpful? Your encouragement fuels the project. Please tweet or add a comment.

Couldn't get something to work? For the example apps and tutorials, it's best to open an issue on GitHub so we can help you. Rails 5. Learn more about Rails 5. Learn more about Rails 4. See Rails 3. See announcement Rails 4. See announcement.



0コメント

  • 1000 / 1000