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



15
16
17
# File 'lib/active_model_serializers/serialization_context.rb', line 15

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

Instance Method Details

#default_url_optionsObject



19
20
21
# File 'lib/active_model_serializers/serialization_context.rb', line 19

def default_url_options
  SerializationContext.default_url_options
end