Sha256: 81a58bdd5a7b87c23d2879e83e813e6599ffadd6553b9fd3d954ac41aa6f4cc5
Contents?: true
Size: 644 Bytes
Versions: 2
Compression:
Stored size: 644 Bytes
Contents
module Roar::Rails class Responder < ActionController::Responder module VersionStrategy extend ActiveSupport::Concern included do # FIXME: this totally SUCKS, why am i supposed to add a global "renderer" (whatever that is) to handle hal requests. this should be a generic behaviour in Rails core. # TODO: replace renderer/responder layer in Rails with a simpler implementation. # ActionController.add_renderer :hal do |js, options| # self.content_type ||= Mime::HAL # js.to_json # end end end end module TestCase module VersionStrategy end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
roar-rails-1.0.0 | lib/roar/rails/rails4_1_strategy.rb |
roar-rails-0.1.6 | lib/roar/rails/rails4_1_strategy.rb |