Module: ActiveModelSerializers::SerializationContext::UrlHelpers

Included in:
Adapter::JsonApi::Link
Defined in:
lib/active_model_serializers/serialization_context.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



17
18
19
# File 'lib/active_model_serializers/serialization_context.rb', line 17

def self.included(base)
  base.send(:include, SerializationContext.url_helpers)
end

Instance Method Details

#default_url_optionsObject



21
22
23
# File 'lib/active_model_serializers/serialization_context.rb', line 21

def default_url_options
  SerializationContext.default_url_options
end