Sha256: e4b5d1d4b5b69c2eb4d18d22bcaee931082d5368355e6f4c67650d3ea2f1babc

Contents?: true

Size: 262 Bytes

Versions: 31

Compression:

Stored size: 262 Bytes

Contents

require "hal_api/rails/version"
require "hal_api"

module HalApi::Rails
  require "responders"

  Mime::Type.register 'application/hal+json', :hal

  ::ActionController::Renderers.add :hal do |obj, options|
    self.content_type ||= Mime[:hal]
    obj
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
hal_api-rails-0.3.2 lib/hal_api/rails.rb
hal_api-rails-0.3.1 lib/hal_api/rails.rb
hal_api-rails-0.3.0 lib/hal_api/rails.rb
hal_api-rails-0.2.9 lib/hal_api/rails.rb
hal_api-rails-0.2.8 lib/hal_api/rails.rb
hal_api-rails-0.2.7 lib/hal_api/rails.rb
hal_api-rails-0.2.6 lib/hal_api/rails.rb
hal_api-rails-0.2.5 lib/hal_api/rails.rb
hal_api-rails-0.2.4 lib/hal_api/rails.rb
hal_api-rails-0.2.3 lib/hal_api/rails.rb
hal_api-rails-0.2.2 lib/hal_api/rails.rb