diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2015-04-15 15:30:27 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2015-06-11 16:54:09 -0300 |
commit | 032778eefb4439a72c2933ea0bd4a7a0ef776234 (patch) | |
tree | 4f79724c4543a479f2271a16354c91f95f5997e6 /actionpack/lib/action_controller/api | |
parent | ed7d787e120347ebc97647014a5e1fef7a34c19c (diff) | |
download | rails-032778eefb4439a72c2933ea0bd4a7a0ef776234.tar.gz rails-032778eefb4439a72c2933ea0bd4a7a0ef776234.tar.bz2 rails-032778eefb4439a72c2933ea0bd4a7a0ef776234.zip |
Add ActionController API functionality
Diffstat (limited to 'actionpack/lib/action_controller/api')
-rw-r--r-- | actionpack/lib/action_controller/api/api_rendering.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/api/api_rendering.rb b/actionpack/lib/action_controller/api/api_rendering.rb new file mode 100644 index 0000000000..3a08d28c39 --- /dev/null +++ b/actionpack/lib/action_controller/api/api_rendering.rb @@ -0,0 +1,14 @@ +module ActionController + module ApiRendering + extend ActiveSupport::Concern + + included do + include Rendering + end + + def render_to_body(options = {}) + _process_options(options) + super + end + end +end |