Sha256: e06e0ca91e474719070d3a329bff6d08211cef97463cf56371ae3745f89ad159

Contents?: true

Size: 240 Bytes

Versions: 28

Compression:

Stored size: 240 Bytes

Contents

class EveApp::TypeSerializer < ActiveModel::Serializer
  attributes :id, :name
  attribute :category do
    object.category.try(:name)
  end
  attribute :group do
    object.group.try(:name)
  end

  # link(:self) { type_path(object) }
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
eve_app-0.1.34 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.33 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.32 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.31 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.29 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.27 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.22 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.21 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.20 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.19 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.18 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.17 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.16 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.14 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.13 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.12 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.11 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.10 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.9 app/serializers/eve_app/type_serializer.rb
eve_app-0.1.8 app/serializers/eve_app/type_serializer.rb