aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use performed? instead of checking for response_bodyCarlos Antonio da Silva2012-01-191-4/+4
| | | | | | * Check for performed? instead of response_body * Change performed? to return a boolean * Refactor AC::Metal#response_body= to reuse variable
* Do not deprecate performed.José Valim2012-01-191-0/+4
|
* refactor response_body= methodVasiliy Ermolovich2012-01-141-7/+1
| | | | response_to?(:each) returns false for strings in ruby 1.9, so there is no need for these checks
* Fix AC::Metal#response_body= to store same value on Ruby 1.8 and 1.9Akira Matsuda2011-11-071-1/+7
| | | | This was because String#respond_to?(:each) differs in 1.8 and 1.9
* make our constructor signature match the superclassAaron Patterson2011-04-171-1/+1
|
* Add docs for ActionController::Metal class methodsGabriel Horner2011-03-281-1/+5
|
* Merge branch 'master' into nested_has_many_throughJon Leighton2011-03-041-7/+56
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/CHANGELOG activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/class_methods/join_dependency.rb activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb activerecord/lib/active_record/associations/has_many_association.rb activerecord/lib/active_record/associations/has_many_through_association.rb activerecord/lib/active_record/associations/has_one_association.rb activerecord/lib/active_record/associations/has_one_through_association.rb activerecord/lib/active_record/associations/through_association_scope.rb activerecord/lib/active_record/reflection.rb activerecord/test/cases/associations/has_many_through_associations_test.rb activerecord/test/cases/associations/has_one_through_associations_test.rb activerecord/test/cases/reflection_test.rb activerecord/test/cases/relations_test.rb activerecord/test/fixtures/memberships.yml activerecord/test/models/categorization.rb activerecord/test/models/category.rb activerecord/test/models/member.rb activerecord/test/models/reference.rb activerecord/test/models/tagging.rb
| * revises a metal exampleXavier Noria2011-02-021-4/+4
| |
| * copy-edits 2446b13Xavier Noria2011-02-021-14/+13
| |
| * Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-02-021-5/+55
| |\
| | * Provide documentation for ActionController::MetalBernerd Schaefer2011-02-021-5/+55
| |/ |/|
| * If I want to set respond_body to nil then itNeeraj Singh2011-01-251-1/+1
|/ | | | | | | should be nil and not [nil]. If anything other than nil then wrap it in array Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix a few bugs when trying to use Head standalonewycats2010-10-101-0/+5
|
* Fix tests on 1.9.2.José Valim2010-09-281-0/+1
|
* Initialize @_request and @_response.Emilio Tagua2010-09-271-1/+3
|
* added block arguments to ActionController::Metal#useCollin Miller2010-09-121-3/+3
| | | | | | | | | | | Useful for cases such as warden, where a block configuration is taken. class SomeController < ApplicationController use RailsWarden::Manager do |manager| manager.default_strategies :facebook_oauth manager.failure_app = SomeController.action(:authorize) end end
* Ensure that env is always available in controllersPiotr Sarnacki2010-09-031-1/+5
|
* cleanup of ActionController::Metal inline documentationJoost Baaij2010-08-261-15/+13
|
* Fixes for "router" and "routes" terminologyWincent Colaiuta2010-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit f7ba614c2db improved the internal consistency of the different means of accessing routes, but it introduced some problems at the level of code comments and user-visible strings. This commit applies fixes on three levels: Firstly, we remove or replace grammatically invalid constructs such as "a routes" or "a particular routes". Secondly, we make sure that we always use "the router DSL" or "the router syntax", because this has always been the official terminology. Finally, we make sure that we only use "routes" when referring to the application-specific set of routes that are defined in the "config/routes.rb" file, we use "router" when referring on a more abstract level to "the code in Rails used to handle routing", and we use "routing" when we need an adjective to apply to nouns such as "url_helpers. Again this is consistent with historical practice and other places in the documentation. Note that this is not a sweep over the entire codebase to ensure consistent usage of language; it is just a revision of the changes introduced in commit f7ba614c2db. Signed-off-by: Wincent Colaiuta <win@wincent.com> Signed-off-by: José Valim <jose.valim@gmail.com>
* Unify routes naming by renaming router to routesPiotr Sarnacki2010-07-021-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix controller_name for non default controller paths [#4901 state:resolved]knapo2010-06-231-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove a relic of #request being in RackDelegationwycats2010-06-191-2/+9
|
* Add :only and :except to controllers MiddlewareStack. This allowsJosé Valim2010-05-301-3/+45
| | | | | | | | you to do the following: class PostsController < ApplicationController use AutheMiddleware, :except => [:index, :show] end
* Return a valid Rack response from bare ActionController::MetalCarlhuda2010-03-181-1/+7
|
* Eliminate warnings for AM on 1.8wycats2010-03-161-1/+5
|
* Simplify the action endpoint:Carlhuda2010-03-081-25/+9
| | | | | | | * Remove ActionEndpoint in favor of passing a block to MiddlewareStack * Always create a Request; the performance win of RackDelegation is around the response; the Request object hit is limited to a single object allocation * #dispatch takes a Request
* Add missing super call in AC::Metal. [#4085 status:resolved]José Valim2010-03-031-0/+1
|
* Update AP to start locking down a public API. This work is parallel to some ↵Yehuda Katz2010-02-161-0/+8
| | | | docs I'm working on.
* Convert to class_attributeJeremy Kemper2010-02-011-2/+7
|
* Expose last controller in rack env["action_controller.instance"]Joshua Peek2010-01-201-0/+1
|
* controller_path is required by ActionView, so move it up to ↵José Valim2009-12-311-15/+0
| | | | AbstractController and refactor AbstractController::Layouts.
* Silence some trivial warnings: shadowed local vars, indentation mismatchesJeremy Kemper2009-12-281-1/+1
|
* AD::StatusCodes support is now part of rackJoshua Peek2009-12-221-1/+1
|
* AC::Head now doesn't have an unfulfilled Rendering dependency, and instead ↵Yehuda Katz2009-12-201-0/+5
| | | | works just fine standalone (which means that ConditionalGet also doesn't have a Rendering dependency)
* Rename RackConvenience => RackDelegationJoshua Peek2009-12-201-3/+3
|
* Renamed Redirector to Redirecting (its a module, not a class)David Heinemeier Hansson2009-12-201-1/+1
|
* Update AC::Middleware to play better with the normal AC::Metal stack. This ↵Yehuda Katz2009-11-051-3/+3
| | | | required stopping to use #call for non-rack-related stuff
* Start rewriting some internal tests to use the new routing dslJoshua Peek2009-10-201-0/+4
|
* Uses extlib_inheritable_accessorJeremy Kemper2009-09-141-0/+2
|
* Memoize in the endpoint.Yehuda Katz2009-09-121-5/+10
|
* Add per-controller middlewareYehuda Katz2009-09-121-1/+14
|
* Create new ActionController::Middleware class that will work as a normal ↵Yehuda Katz2009-08-261-22/+0
| | | | | | Rack middleware. * This initial implementation is a bit hackish, but it uses a normal middleware API so it's future-proof when we improve the internals.
* ActionController::Metal can be a middlewareYehuda Katz + Carl Lerche2009-08-251-5/+35
|
* Move AbstractController to a top-level componentYehuda Katz2009-08-061-2/+0
|
* ActionController::Metal#to_rack converted to #to_a to match normal rack ↵Yehuda Katz2009-08-061-2/+2
| | | | convention
* Rename /base to /metal and make base.rb and metal.rb top-level to reflect ↵Yehuda Katz2009-08-061-0/+99
their module locations