{"action":"created","issue":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1971","repository_url":"https://api.github.com/repos/rails-api/active_model_serializers","labels_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1971/labels{/name}","comments_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1971/comments","events_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1971/events","html_url":"https://github.com/rails-api/active_model_serializers/issues/1971","id":188661077,"number":1971,"title":"url_helpers non-functional in links method?","user":{"login":"michael-reeves","id":7769973,"avatar_url":"https://avatars.githubusercontent.com/u/7769973?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-reeves","html_url":"https://github.com/michael-reeves","followers_url":"https://api.github.com/users/michael-reeves/followers","following_url":"https://api.github.com/users/michael-reeves/following{/other_user}","gists_url":"https://api.github.com/users/michael-reeves/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-reeves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-reeves/subscriptions","organizations_url":"https://api.github.com/users/michael-reeves/orgs","repos_url":"https://api.github.com/users/michael-reeves/repos","events_url":"https://api.github.com/users/michael-reeves/events{/privacy}","received_events_url":"https://api.github.com/users/michael-reeves/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-11-11T01:07:15Z","updated_at":"2016-11-21T17:29:46Z","closed_at":null,"body":"#### Expected behavior vs actual behavior\r\nI was trying to implement the links behavior described in how_to/add_relationship_links.md\r\n\r\nWhen I implement def links as described I get \r\n`undefined method 'api_v1_entity_url'`\r\n\r\nSame error when using `api_v1_entity_path`\r\n\r\n\r\n#### Steps to reproduce\r\nMy serializer example:\r\n```ruby\r\nclass IpAddressSerializer < ActiveModel::Serializer\r\n  # type :ip_address\r\n\r\n  attributes :id, :address, :gateway, :netmask, :ip_use, :ip_type, :links\r\n\r\n  def links\r\n    {\r\n      entity: api_v1_entity_url(object.entity.name)\r\n    }\r\n  end\r\n  # link(:entity) { api_v1_entity_url(object.entity.name) }\r\n  \r\n\r\n  def ip_use\r\n    object.ip_use.name\r\n  end\r\n\r\n  def ip_type\r\n    object.ip_type.name\r\n  end\r\nend\r\n```\r\n\r\nIf I remove the links attr and uncomment link(:entity) piece, I get correct response.\r\n```json\r\n{\r\n    \"data\": {\r\n        \"id\": \"1\",\r\n        \"type\": \"ip-addresses\",\r\n        \"attributes\": {\r\n            \"address\": \"192.168.10.10\",\r\n            \"gateway\": \"192.168.10.1\",\r\n            \"netmask\": \"24\",\r\n            \"ip-use\": \"IPMI\",\r\n            \"ip-type\": \"IPv4\"\r\n        },\r\n        \"links\": {\r\n             \"entity\": \"http://localhost/api/v1/entities/server1\"\r\n        }\r\n    }\r\n}\r\n```\r\n#### Environment\r\n\r\nActiveModelSerializers Version *(commit ref if not on tag)*: 0.10.2\r\n\r\nOutput of `ruby -e \"puts RUBY_DESCRIPTION\"`: \r\nruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]\r\n\r\nOS Type & Version: OS X 10.11.6\r\n\r\nIntegrated application and version *(e.g., Rails, Grape, etc)*: \r\nRails 4.2.6\r\n\r\n#### Backtrace\r\n\r\n```sh\r\nCompleted 500 Internal Server Error in 51ms (ActiveRecord: 1.4ms)\r\n\r\nNoMethodError - undefined method `api_v1_entity_url' for #<IpAddressSerializer:0x007fe3028e40a8>:\r\n  app/serializers/ip_address_serializer.rb:8:in `links'\r\n  active_model_serializers (0.10.2) lib/active_model/serializer.rb:195:in `read_attribute_for_serialization'\r\n  active_model_serializers (0.10.2) lib/active_model/serializer/field.rb:23:in `value'\r\n  active_model_serializers (0.10.2) lib/active_model/serializer/attributes.rb:22:in `block in attributes'\r\n  active_model_serializers (0.10.2) lib/active_model/serializer/attributes.rb:19:in `attributes'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/adapter/json_api.rb:292:in `attributes_for'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/adapter/json_api.rb:301:in `block in resource_object_for'\r\n  active_model_serializers (0.10.2) lib/active_model/serializer/caching.rb:226:in `fetch'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/adapter/json_api.rb:297:in `resource_object_for'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/adapter/json_api.rb:248:in `process_resource'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/adapter/json_api.rb:238:in `block in resource_objects_for'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/adapter/json_api.rb:238:in `resource_objects_for'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/adapter/json_api.rb:90:in `success_document'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/adapter/json_api.rb:59:in `serializable_hash'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/adapter/base.rb:59:in `as_json'\r\n  activesupport (4.2.6) lib/active_support/json/encoding.rb:35:in `encode'\r\n  activesupport (4.2.6) lib/active_support/json/encoding.rb:22:in `encode'\r\n  activesupport (4.2.6) lib/active_support/core_ext/object/json.rb:37:in `to_json_with_active_support_encoder'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/serializable_resource.rb:8:in `to_json'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/logging.rb:69:in `block (3 levels) in notify'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:498:in `block (2 levels) in around'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/logging.rb:22:in `block (3 levels) in instrument_rendering'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/logging.rb:79:in `block in notify_render'\r\n  activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument'\r\n  activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n  activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/logging.rb:78:in `notify_render'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/logging.rb:21:in `block (2 levels) in instrument_rendering'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/logging.rb:95:in `block in tag_logger'\r\n  activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'\r\n  activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged'\r\n  activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/logging.rb:95:in `tag_logger'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/logging.rb:20:in `block in instrument_rendering'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:441:in `block in make_lambda'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:342:in `block in simple'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:497:in `block in around'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_render_callbacks'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\n  active_model_serializers (0.10.2) lib/active_model_serializers/logging.rb:68:in `block (2 levels) in notify'\r\n  actionpack (4.2.6) lib/action_controller/metal/renderers.rb:116:in `block in <module:Renderers>'\r\n  active_model_serializers (0.10.2) lib/action_controller/serialization.rb:53:in `block (2 levels) in <module:Serialization>'\r\n  actionpack (4.2.6) lib/action_controller/metal/renderers.rb:45:in `block in _render_to_body_with_renderer'\r\n  /Users/mikal/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/set.rb:306:in `each'\r\n  actionpack (4.2.6) lib/action_controller/metal/renderers.rb:41:in `_render_to_body_with_renderer'\r\n  actionpack (4.2.6) lib/action_controller/metal/renderers.rb:37:in `render_to_body'\r\n  actionpack (4.2.6) lib/abstract_controller/rendering.rb:25:in `render'\r\n  actionpack (4.2.6) lib/action_controller/metal/rendering.rb:16:in `render'\r\n  actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'\r\n  activesupport (4.2.6) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'\r\n  /Users/mikal/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'\r\n  activesupport (4.2.6) lib/active_support/core_ext/benchmark.rb:12:in `ms'\r\n  actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:44:in `block in render'\r\n  actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'\r\n  activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'\r\n  actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:43:in `render'\r\n  responders (2.3.0) lib/action_controller/responder.rb:260:in `display'\r\n  responders (2.3.0) lib/action_controller/responder.rb:214:in `api_behavior'\r\n  responders (2.3.0) lib/action_controller/responder.rb:193:in `rescue in to_format'\r\n  responders (2.3.0) lib/action_controller/responder.rb:185:in `to_format'\r\n  responders (2.3.0) lib/action_controller/responder.rb:163:in `respond'\r\n  responders (2.3.0) lib/action_controller/responder.rb:156:in `call'\r\n  responders (2.3.0) lib/action_controller/respond_with.rb:205:in `respond_with'\r\n  app/controllers/api/v1/ip_addresses_controller.rb:7:in `show'\r\n  actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action'\r\n  actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action'\r\n  actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action'\r\n  actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\n  actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action'\r\n  actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action'\r\n  actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'\r\n  activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument'\r\n  activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n  activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument'\r\n  actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\r\n  actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'\r\n  activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\r\n  actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process'\r\n  actionview (4.2.6) lib/action_view/rendering.rb:30:in `process'\r\n  actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch'\r\n  actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'\r\n  actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action'\r\n  actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'\r\n  actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve'\r\n  actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve'\r\n  actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve'\r\n  actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817:in `call'\r\n  meta_request (0.4.0) lib/meta_request/middlewares/app_request_handler.rb:13:in `call'\r\n  meta_request (0.4.0) lib/meta_request/middlewares/meta_request_handler.rb:13:in `call'\r\n  warden (1.2.6) lib/warden/manager.rb:35:in `block in call'\r\n  warden (1.2.6) lib/warden/manager.rb:34:in `call'\r\n  rack (1.6.4) lib/rack/etag.rb:24:in `call'\r\n  rack (1.6.4) lib/rack/conditionalget.rb:25:in `call'\r\n  rack (1.6.4) lib/rack/head.rb:13:in `call'\r\n  actionpack (4.2.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call'\r\n  actionpack (4.2.6) lib/action_dispatch/middleware/flash.rb:260:in `call'\r\n  rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context'\r\n  rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call'\r\n  actionpack (4.2.6) lib/action_dispatch/middleware/cookies.rb:560:in `call'\r\n  activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call'\r\n  activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'\r\n  activerecord (4.2.6) lib/active_record/migration.rb:377:in `call'\r\n  actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks'\r\n  activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\n  actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\r\n  actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call'\r\n  actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'\r\n  better_errors (2.1.1) lib/better_errors/middleware.rb:84:in `protected_app_call'\r\n  better_errors (2.1.1) lib/better_errors/middleware.rb:79:in `better_errors_call'\r\n  better_errors (2.1.1) lib/better_errors/middleware.rb:57:in `call'\r\n  actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\r\n  rack-contrib (1.4.0) lib/rack/contrib/response_headers.rb:17:in `call'\r\n  meta_request (0.4.0) lib/meta_request/middlewares/headers.rb:16:in `call'\r\n  actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\r\n  railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app'\r\n  railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call'\r\n  activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged'\r\n  activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged'\r\n  activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged'\r\n  railties (4.2.6) lib/rails/rack/logger.rb:20:in `call'\r\n  quiet_assets (1.1.0) lib/quiet_assets.rb:27:in `call_with_quiet_assets'\r\n  request_store (1.3.1) lib/request_store/middleware.rb:9:in `call'\r\n  actionpack (4.2.6) lib/action_dispatch/middleware/request_id.rb:21:in `call'\r\n  rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'\r\n  rack (1.6.4) lib/rack/runtime.rb:18:in `call'\r\n  activesupport (4.2.6) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'\r\n  rack (1.6.4) lib/rack/lock.rb:17:in `call'\r\n  actionpack (4.2.6) lib/action_dispatch/middleware/static.rb:120:in `call'\r\n  rack (1.6.4) lib/rack/sendfile.rb:113:in `call'\r\n  railties (4.2.6) lib/rails/engine.rb:518:in `call'\r\n  railties (4.2.6) lib/rails/application.rb:165:in `call'\r\n  rack (1.6.4) lib/rack/content_length.rb:15:in `call'\r\n  puma (3.5.2) lib/puma/configuration.rb:225:in `call'\r\n  puma (3.5.2) lib/puma/server.rb:569:in `handle_request'\r\n  puma (3.5.2) lib/puma/server.rb:406:in `process_client'\r\n  puma (3.5.2) lib/puma/server.rb:271:in `block in run'\r\n  puma (3.5.2) lib/puma/thread_pool.rb:116:in `block in spawn_thread'\r\n```\r\n\r\n\r\n\r\n#### Additonal helpful information\r\n*(e.g., Gemfile.lock, configurations, PR containing a failing test, git bisect results)*\r\n\r\nconfig/initializers/active_model_serializer.rb\r\n```ruby \r\nActiveModelSerializers.config.adapter = :json_api\r\n\r\nRails.application.routes.default_url_options = {\r\n  host: 'localhost'\r\n}\r\n```\r\n\r\nGemfile.lock\r\n\r\n```\r\nGIT\r\n  remote: https://github.com/activerecord-hackery/squeel.git\r\n  revision: 5542266d502db8022e14105f9dfb455a79d6fc4a\r\n  specs:\r\n    squeel (1.2.3)\r\n      activerecord (>= 3.0)\r\n      activesupport (>= 3.0)\r\n      polyamorous (~> 1.1.0)\r\n\r\nGEM\r\n  remote: https://rubygems.org/\r\n  specs:\r\n    actionmailer (4.2.6)\r\n      actionpack (= 4.2.6)\r\n      actionview (= 4.2.6)\r\n      activejob (= 4.2.6)\r\n      mail (~> 2.5, >= 2.5.4)\r\n      rails-dom-testing (~> 1.0, >= 1.0.5)\r\n    actionpack (4.2.6)\r\n      actionview (= 4.2.6)\r\n      activesupport (= 4.2.6)\r\n      rack (~> 1.6)\r\n      rack-test (~> 0.6.2)\r\n      rails-dom-testing (~> 1.0, >= 1.0.5)\r\n      rails-html-sanitizer (~> 1.0, >= 1.0.2)\r\n    actionview (4.2.6)\r\n      activesupport (= 4.2.6)\r\n      builder (~> 3.1)\r\n      erubis (~> 2.7.0)\r\n      rails-dom-testing (~> 1.0, >= 1.0.5)\r\n      rails-html-sanitizer (~> 1.0, >= 1.0.2)\r\n    active_model_serializers (0.10.2)\r\n      actionpack (>= 4.1, < 6)\r\n      activemodel (>= 4.1, < 6)\r\n      jsonapi (~> 0.1.1.beta2)\r\n      railties (>= 4.1, < 6)\r\n    activejob (4.2.6)\r\n      activesupport (= 4.2.6)\r\n      globalid (>= 0.3.0)\r\n    activemodel (4.2.6)\r\n      activesupport (= 4.2.6)\r\n      builder (~> 3.1)\r\n    activerecord (4.2.6)\r\n      activemodel (= 4.2.6)\r\n      activesupport (= 4.2.6)\r\n      arel (~> 6.0)\r\n    activesupport (4.2.6)\r\n      i18n (~> 0.7)\r\n      json (~> 1.7, >= 1.7.7)\r\n      minitest (~> 5.1)\r\n      thread_safe (~> 0.3, >= 0.3.4)\r\n      tzinfo (~> 1.1)\r\n    addressable (2.4.0)\r\n    airbrussh (1.0.2)\r\n      sshkit (>= 1.6.1, != 1.7.0)\r\n    arel (6.0.3)\r\n    auto_strip_attributes (2.0.6)\r\n      activerecord (>= 3.0)\r\n    autoprefixer-rails (6.3.7)\r\n      execjs\r\n    awesome_print (1.7.0)\r\n    bcrypt (3.1.11)\r\n    better_errors (2.1.1)\r\n      coderay (>= 1.0.0)\r\n      erubis (>= 2.6.6)\r\n      rack (>= 0.9.0)\r\n    binding_of_caller (0.7.2)\r\n      debug_inspector (>= 0.0.1)\r\n    bootstrap-kaminari-views (0.0.5)\r\n      kaminari (>= 0.13)\r\n      rails (>= 3.1)\r\n    bootstrap-sass (3.3.6)\r\n      autoprefixer-rails (>= 5.2.1)\r\n      sass (>= 3.3.4)\r\n    builder (3.2.2)\r\n    byebug (9.0.5)\r\n    callsite (0.0.11)\r\n    capistrano (3.5.0)\r\n      airbrussh (>= 1.0.0)\r\n      capistrano-harrow\r\n      i18n\r\n      rake (>= 10.0.0)\r\n      sshkit (>= 1.9.0)\r\n    capistrano-bundler (1.1.4)\r\n      capistrano (~> 3.1)\r\n      sshkit (~> 1.2)\r\n    capistrano-harrow (0.5.2)\r\n    capistrano-rails (1.1.7)\r\n      capistrano (~> 3.1)\r\n      capistrano-bundler (~> 1.1)\r\n    capistrano-rvm (0.1.2)\r\n      capistrano (~> 3.0)\r\n      sshkit (~> 1.2)\r\n    capistrano-scm-copy (0.7.0)\r\n      capistrano (~> 3.0)\r\n    capybara (2.7.1)\r\n      addressable\r\n      mime-types (>= 1.16)\r\n      nokogiri (>= 1.3.3)\r\n      rack (>= 1.0.0)\r\n      rack-test (>= 0.5.4)\r\n      xpath (~> 2.0)\r\n    childprocess (0.5.9)\r\n      ffi (~> 1.0, >= 1.0.11)\r\n    coderay (1.1.1)\r\n    coffee-rails (4.1.1)\r\n      coffee-script (>= 2.2.0)\r\n      railties (>= 4.0.0, < 5.1.x)\r\n    coffee-script (2.4.1)\r\n      coffee-script-source\r\n      execjs\r\n    coffee-script-source (1.10.0)\r\n    concurrent-ruby (1.0.2)\r\n    database_cleaner (1.5.3)\r\n    debug_inspector (0.0.2)\r\n    devise (4.2.0)\r\n      bcrypt (~> 3.0)\r\n      orm_adapter (~> 0.1)\r\n      railties (>= 4.1.0, < 5.1)\r\n      responders\r\n      warden (~> 1.2.3)\r\n    devise_ldap_authenticatable (0.8.5)\r\n      devise (>= 3.4.1)\r\n      net-ldap (>= 0.6.0, <= 0.11)\r\n    diff-lcs (1.2.5)\r\n    docile (1.1.5)\r\n    erubis (2.7.0)\r\n    execjs (2.7.0)\r\n    fabrication (2.15.2)\r\n    ffi (1.9.14)\r\n    git-version-bump (0.15.1)\r\n    globalid (0.3.6)\r\n      activesupport (>= 4.1.0)\r\n    i18n (0.7.0)\r\n    jbuilder (2.5.0)\r\n      activesupport (>= 3.0.0, < 5.1)\r\n      multi_json (~> 1.2)\r\n    jquery-rails (4.1.1)\r\n      rails-dom-testing (>= 1, < 3)\r\n      railties (>= 4.2.0)\r\n      thor (>= 0.14, < 2.0)\r\n    json (1.8.3)\r\n    jsonapi (0.1.1.beta6)\r\n      jsonapi-parser (= 0.1.1.beta3)\r\n      jsonapi-renderer (= 0.1.1.beta1)\r\n    jsonapi-parser (0.1.1.beta3)\r\n    jsonapi-renderer (0.1.1.beta1)\r\n    kaminari (0.17.0)\r\n      actionpack (>= 3.0.0)\r\n      activesupport (>= 3.0.0)\r\n    launchy (2.4.3)\r\n      addressable (~> 2.3)\r\n    loofah (2.0.3)\r\n      nokogiri (>= 1.5.9)\r\n    mail (2.6.4)\r\n      mime-types (>= 1.16, < 4)\r\n    meta_request (0.4.0)\r\n      callsite (~> 0.0, >= 0.0.11)\r\n      rack-contrib (~> 1.1)\r\n      railties (>= 3.0.0, < 5.1.0)\r\n    method_source (0.8.2)\r\n    mime-types (3.1)\r\n      mime-types-data (~> 3.2015)\r\n    mime-types-data (3.2016.0521)\r\n    mini_portile2 (2.1.0)\r\n    minitest (5.9.1)\r\n    multi_json (1.12.1)\r\n    net-ldap (0.11)\r\n    net-scp (1.2.1)\r\n      net-ssh (>= 2.6.5)\r\n    net-ssh (3.2.0)\r\n    nokogiri (1.6.8.1)\r\n      mini_portile2 (~> 2.1.0)\r\n    orm_adapter (0.5.0)\r\n    paper_trail (5.2.2)\r\n      activerecord (>= 3.0, < 6.0)\r\n      request_store (~> 1.1)\r\n    paranoia (2.1.5)\r\n      activerecord (~> 4.0)\r\n    pg (0.18.4)\r\n    polyamorous (1.1.0)\r\n      activerecord (>= 3.0)\r\n    pry (0.10.4)\r\n      coderay (~> 1.1.0)\r\n      method_source (~> 0.8.1)\r\n      slop (~> 3.4)\r\n    pry-byebug (3.4.0)\r\n      byebug (~> 9.0)\r\n      pry (~> 0.10)\r\n    puma (3.5.2)\r\n    quiet_assets (1.1.0)\r\n      railties (>= 3.1, < 5.0)\r\n    rack (1.6.4)\r\n    rack-contrib (1.4.0)\r\n      git-version-bump (~> 0.15)\r\n      rack (~> 1.4)\r\n    rack-test (0.6.3)\r\n      rack (>= 1.0)\r\n    railroady (1.5.1)\r\n    rails (4.2.6)\r\n      actionmailer (= 4.2.6)\r\n      actionpack (= 4.2.6)\r\n      actionview (= 4.2.6)\r\n      activejob (= 4.2.6)\r\n      activemodel (= 4.2.6)\r\n      activerecord (= 4.2.6)\r\n      activesupport (= 4.2.6)\r\n      bundler (>= 1.3.0, < 2.0)\r\n      railties (= 4.2.6)\r\n      sprockets-rails\r\n    rails-deprecated_sanitizer (1.0.3)\r\n      activesupport (>= 4.2.0.alpha)\r\n    rails-dom-testing (1.0.7)\r\n      activesupport (>= 4.2.0.beta, < 5.0)\r\n      nokogiri (~> 1.6.0)\r\n      rails-deprecated_sanitizer (>= 1.0.1)\r\n    rails-html-sanitizer (1.0.3)\r\n      loofah (~> 2.0)\r\n    railties (4.2.6)\r\n      actionpack (= 4.2.6)\r\n      activesupport (= 4.2.6)\r\n      rake (>= 0.8.7)\r\n      thor (>= 0.18.1, < 2.0)\r\n    rake (11.3.0)\r\n    ransack (1.6.5)\r\n      actionpack (>= 3.0)\r\n      activerecord (>= 3.0)\r\n      activesupport (>= 3.0)\r\n      i18n\r\n      polyamorous (~> 1.1)\r\n    rdoc (4.2.2)\r\n      json (~> 1.4)\r\n    request_store (1.3.1)\r\n    responders (2.3.0)\r\n      railties (>= 4.2.0, < 5.1)\r\n    rspec-core (3.5.1)\r\n      rspec-support (~> 3.5.0)\r\n    rspec-expectations (3.5.0)\r\n      diff-lcs (>= 1.2.0, < 2.0)\r\n      rspec-support (~> 3.5.0)\r\n    rspec-mocks (3.5.0)\r\n      diff-lcs (>= 1.2.0, < 2.0)\r\n      rspec-support (~> 3.5.0)\r\n    rspec-rails (3.5.1)\r\n      actionpack (>= 3.0)\r\n      activesupport (>= 3.0)\r\n      railties (>= 3.0)\r\n      rspec-core (~> 3.5.0)\r\n      rspec-expectations (~> 3.5.0)\r\n      rspec-mocks (~> 3.5.0)\r\n      rspec-support (~> 3.5.0)\r\n    rspec-support (3.5.0)\r\n    rubyzip (1.2.0)\r\n    sass (3.4.22)\r\n    sass-rails (5.0.5)\r\n      railties (>= 4.0.0, < 6)\r\n      sass (~> 3.1)\r\n      sprockets (>= 2.8, < 4.0)\r\n      sprockets-rails (>= 2.0, < 4.0)\r\n      tilt (>= 1.1, < 3)\r\n    sdoc (0.4.1)\r\n      json (~> 1.7, >= 1.7.7)\r\n      rdoc (~> 4.0)\r\n    seedbank (0.4.0)\r\n    selenium-webdriver (3.0.0)\r\n      childprocess (~> 0.5)\r\n      rubyzip (~> 1.0)\r\n      websocket (~> 1.0)\r\n    simple_form (3.2.1)\r\n      actionpack (> 4, < 5.1)\r\n      activemodel (> 4, < 5.1)\r\n    simplecov (0.12.0)\r\n      docile (~> 1.1.0)\r\n      json (>= 1.8, < 3)\r\n      simplecov-html (~> 0.10.0)\r\n    simplecov-html (0.10.0)\r\n    slop (3.6.0)\r\n    spring (1.7.2)\r\n    sprockets (3.6.3)\r\n      concurrent-ruby (~> 1.0)\r\n      rack (> 1, < 3)\r\n    sprockets-rails (3.1.1)\r\n      actionpack (>= 4.0)\r\n      activesupport (>= 4.0)\r\n      sprockets (>= 3.0.0)\r\n    sqlite3 (1.3.11)\r\n    sshkit (1.11.1)\r\n      net-scp (>= 1.1.2)\r\n      net-ssh (>= 2.8.0)\r\n    thor (0.19.1)\r\n    thread_safe (0.3.5)\r\n    tilt (2.0.5)\r\n    tzinfo (1.2.2)\r\n      thread_safe (~> 0.1)\r\n    uglifier (3.0.0)\r\n      execjs (>= 0.3.0, < 3)\r\n    warden (1.2.6)\r\n      rack (>= 1.0)\r\n    websocket (1.2.3)\r\n    xpath (2.0.0)\r\n      nokogiri (~> 1.3)\r\n\r\nPLATFORMS\r\n  ruby\r\n\r\nDEPENDENCIES\r\n  active_model_serializers (~> 0.10.2)\r\n  auto_strip_attributes (~> 2.0, >= 2.0.6)\r\n  awesome_print\r\n  better_errors (~> 2.1, >= 2.1.1)\r\n  binding_of_caller (~> 0.7.2)\r\n  bootstrap-kaminari-views\r\n  bootstrap-sass (~> 3.3)\r\n  byebug (~> 9.0)\r\n  capistrano (~> 3.5)\r\n  capistrano-bundler (~> 1.1, >= 1.1.4)\r\n  capistrano-rails (~> 1.1, >= 1.1.7)\r\n  capistrano-rvm (~> 0.1.2)\r\n  capistrano-scm-copy (~> 0.7.0)\r\n  capybara (~> 2.7, >= 2.7.1)\r\n  coffee-rails (~> 4.1.0)\r\n  database_cleaner (~> 1.5, >= 1.5.3)\r\n  devise\r\n  devise_ldap_authenticatable\r\n  fabrication (~> 2.15, >= 2.15.2)\r\n  jbuilder (~> 2.0)\r\n  jquery-rails\r\n  kaminari\r\n  launchy (~> 2.4, >= 2.4.3)\r\n  meta_request\r\n  paper_trail (~> 5.2, >= 5.2.2)\r\n  paranoia (~> 2.0)\r\n  pg\r\n  pry-byebug (~> 3.4)\r\n  puma (~> 3.4)\r\n  quiet_assets\r\n  railroady\r\n  rails (= 4.2.6)\r\n  ransack\r\n  responders (~> 2.3)\r\n  rspec-rails (~> 3.4)\r\n  sass-rails (~> 5.0)\r\n  sdoc (~> 0.4.0)\r\n  seedbank (~> 0.4.0)\r\n  selenium-webdriver (~> 3.0)\r\n  simple_form\r\n  simplecov (~> 0.12.0)\r\n  spring\r\n  sqlite3\r\n  squeel!\r\n  uglifier (>= 1.3.0)\r\n\r\nBUNDLED WITH\r\n   1.13.2\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/comments/262007772","html_url":"https://github.com/rails-api/active_model_serializers/issues/1971#issuecomment-262007772","issue_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1971","id":262007772,"user":{"login":"beauby","id":2215778,"avatar_url":"https://avatars.githubusercontent.com/u/2215778?v=3","gravatar_id":"","url":"https://api.github.com/users/beauby","html_url":"https://github.com/beauby","followers_url":"https://api.github.com/users/beauby/followers","following_url":"https://api.github.com/users/beauby/following{/other_user}","gists_url":"https://api.github.com/users/beauby/gists{/gist_id}","starred_url":"https://api.github.com/users/beauby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beauby/subscriptions","organizations_url":"https://api.github.com/users/beauby/orgs","repos_url":"https://api.github.com/users/beauby/repos","events_url":"https://api.github.com/users/beauby/events{/privacy}","received_events_url":"https://api.github.com/users/beauby/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T17:29:46Z","updated_at":"2016-11-21T17:29:46Z","body":"@michael-reeves Note that you could simply mix the helper in `ActiveModel::Serializer`:\r\n```ruby\r\nclass ActiveModel::Serializer\r\n  include Rails.application.routes.url_helpers\r\n```"}}
{"actor":{"display_login":"beauby"}}