Class: RemoteThemeSerializer

Inherits:
ApplicationSerializer show all
Defined in:
app/serializers/remote_theme_serializer.rb

Instance Method Summary collapse

Methods inherited from ApplicationSerializer

expire_cache_fragment!, fragment_cache

Methods inherited from ActiveModel::Serializer

#include!

Instance Method Details

#about_urlObject

wow, AMS has some pretty nutty logic where it tries to find the path here from action dispatch, tell it not to



24
25
26
# File 'app/serializers/remote_theme_serializer.rb', line 24

def about_url
  object.about_url
end

#include_github_diff_link?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'app/serializers/remote_theme_serializer.rb', line 28

def include_github_diff_link?
  github_diff_link.present?
end