- 01 6月, 2012 5 次提交
-
-
由 Piotr Sarnacki 提交于
Similarly to 65250022, this allows to use routes helpers for mounted helpers, but this time in ActionView::TestCase
-
由 José Valim 提交于
Correct the use of to_model in polymorphic routing
-
由 Rafael Mendonça França 提交于
-
由 Piotr Sarnacki 提交于
In integration tests, you might want to use helpers from engines that you mounted in your application. It's not hard to add it by yourself, but it's unneeded boilerplate. mounted_helpers are now included by default. That means that given engine mounted like: mount Foo::Engine => "/foo", :as => "foo" you will be able to use paths from this engine in tests this way: foo.root_path #=> "/foo" (closes #6573)
-
由 Jeremy Friesen 提交于
Prior to this patch the existing .force_ssl method handles both defining the filter and handling the logic for performing the redirect. With this patch the logic for redirecting to the HTTPS protocol is separated from the filter logic that determines if a redirect should occur. By separating the two levels of behavior, an instance method for ActionController (i.e. #force_ssl_redirect) is exposed and available for more granular SSL enforcement. Cleaned up indentation.
-
- 31 5月, 2012 7 次提交
-
-
由 Carlos Antonio da Silva 提交于
Add some tests for link_to with blocks and escaping content.
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
Prefer Hash#[]= over Hash#merge when setting a value.
-
由 Carlos Antonio da Silva 提交于
Remove :to_sym call from public_instance_methods iteration, as such methods in Ruby 1.9 already return symbols. Initialize valid conditions with controller/action instead of setting them afterwards.
-
由 Aaron Patterson 提交于
Thanks to Ben Murphy for reporting this! CVE-2012-2660
-
由 Sergey Nartimov 提交于
Make possible to use a block in button_to helper if button text is hard to fit into the name parameter, e.g.: <%= button_to [:make_happy, @user] do %> Make happy <strong><%= @user.name %></strong> <% end %> # => "<form method="post" action="/users/1/make_happy" class="button_to"> # <div> # <button type="submit"> # Make happy <strong>Name</strong> # </button> # </div> # </form>"
-
由 Sergey Nartimov 提交于
-
- 30 5月, 2012 1 次提交
-
-
由 Brent Vatne 提交于
-
- 29 5月, 2012 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
Some of these requires are now only necessary in ActiveSupport::NumberHelper. Add hash/keys require due to symbolize_keys usage in number helpers. Also remove some whitespaces. Closes #6414
-
由 Carlos Antonio da Silva 提交于
Refactor number helpers output with safety handling to call float parsing only once. Also remove 'erb' require.
-
- 28 5月, 2012 2 次提交
-
-
由 Piotr Sarnacki 提交于
When more than one directory for helpers is provided to a controller, it should preserver the order of directories. Given 2 paths: MyController.helpers_paths = ["dir1/helpers", "dir2/helpers"] helpers from dir1 should be loaded first. Before this commit, all helpers were mixed and then sorted alphabetically, which essentially would require to rename helpers to get desired order. This is a problem especially for engines, where you would like to be able to predict accurately which engine helpers will load first. (closes #6496)
-
由 Andrew Mutz 提交于
-
- 27 5月, 2012 3 次提交
-
-
由 Rafael Mendonça França 提交于
This options can be used to not escape the result by default.
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
Refactoring the truncate method to not do a sort-circuit return
-
- 26 5月, 2012 1 次提交
-
-
由 Li Ellis Gallardo 提交于
This way if my text is long I don't have to do something like this: .text = truncate(@text, :length => 27) if @text.size >= 27 = link_to "continue", notes_path, ....."")
-
- 25 5月, 2012 2 次提交
-
-
由 Mikhail Vaysman 提交于
-
由 José Valim 提交于
-
- 24 5月, 2012 3 次提交
-
-
由 Vijay Dev 提交于
-
由 Matt Griffin 提交于
- 23 5月, 2012 5 次提交
-
-
由 David Morton 提交于
-
由 Philip Arndt 提交于
-
由 Carlos Galdino 提交于
These tests check the values of 'min' and 'max' input attrs
-
由 Carlos Galdino 提交于
-
由 Philip Arndt 提交于
* Added tests for 'else' case in ActionView::Helpers::TranslationHelper#wrap_translate_defaults * Also updated the testing syntax of translation.html_safe? asserts to provide better output upon failure.
-
- 22 5月, 2012 9 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Alexey Vakhov 提交于
-
由 Carlos Galdino 提交于
The input types added are: - input[type="month"] - input[type="week"] - input[type="datetime"] - input[type="datetime-local"]
-
由 Carlos Galdino 提交于
-
由 Marc-Andre Lafortune 提交于
-
由 José Valim 提交于
This reverts commit 254c0428, reversing changes made to 513a0525.
-
由 Tom Clarke 提交于
In order to avoid holding a global lock when doing template resolution, instead add individual locks on a per cache entry basis. The global lock is now only used for manipulation of the main cache data structure.
-
由 Tom Clarke 提交于
The Template cache in the Resolver can be accessed by multiple threads similtaneously in multi-threaded environments. The cache is implemented using a Hash, which isn't threadsafe in all VMs (notably JRuby). This commit extracts the cache to a new Cache class and adds mutexes to prevent concurrent access.
-