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-1.2.2 lib/hal_api/rails.rb
hal_api-rails-1.2.1 lib/hal_api/rails.rb
hal_api-rails-1.2.0 lib/hal_api/rails.rb
hal_api-rails-1.1.5 lib/hal_api/rails.rb
hal_api-rails-1.1.4 lib/hal_api/rails.rb
hal_api-rails-0.3.7 lib/hal_api/rails.rb
hal_api-rails-0.3.6 lib/hal_api/rails.rb
hal_api-rails-1.1.3 lib/hal_api/rails.rb
hal_api-rails-0.3.5 lib/hal_api/rails.rb
hal_api-rails-1.1.2 lib/hal_api/rails.rb
hal_api-rails-1.1.1 lib/hal_api/rails.rb
hal_api-rails-1.1.0 lib/hal_api/rails.rb
hal_api-rails-1.0.0 lib/hal_api/rails.rb
hal_api-rails-0.7.0 lib/hal_api/rails.rb
hal_api-rails-0.6.0 lib/hal_api/rails.rb
hal_api-rails-0.5.0 lib/hal_api/rails.rb
hal_api-rails-0.4.1 lib/hal_api/rails.rb
hal_api-rails-0.4.0 lib/hal_api/rails.rb
hal_api-rails-0.3.4 lib/hal_api/rails.rb
hal_api-rails-0.3.3 lib/hal_api/rails.rb