Sha256: aab123dbdb1117f11f365fa03fcf94babb66bc8f7f5451b307043bdc2e608751

Contents?: true

Size: 269 Bytes

Versions: 16

Compression:

Stored size: 269 Bytes

Contents

class AlertSerializer < ActiveModel::Serializer
  def author_name
    object.user.name
  end

  attributes :id, :query_title, :status, :author_name, :description, :email, :comparator, :target, :query_id

  has_one :last_alert_result
  has_one :latest_query_version
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
aleph_analytics-0.4.9.pre.dev app/serializers/alert_serializer.rb
aleph_analytics-0.4.8 app/serializers/alert_serializer.rb
aleph_analytics-0.4.7 app/serializers/alert_serializer.rb
aleph_analytics-0.4.4 app/serializers/alert_serializer.rb
aleph_analytics-0.4.2 app/serializers/alert_serializer.rb
aleph_analytics-0.4.1 app/serializers/alert_serializer.rb
aleph_analytics-0.3.0 app/serializers/alert_serializer.rb
aleph_analytics-0.2.0 app/serializers/alert_serializer.rb
aleph_analytics-0.1.0 app/serializers/alert_serializer.rb
aleph_analytics-0.0.6 app/serializers/alert_serializer.rb
aleph_analytics-0.0.5 app/serializers/alert_serializer.rb
aleph_analytics-0.0.4 app/serializers/alert_serializer.rb
aleph_analytics-0.0.3 app/serializers/alert_serializer.rb
aleph_analytics-0.0.2 app/serializers/alert_serializer.rb
aleph_analytics-0.0.1.alpha app/serializers/alert_serializer.rb
aleph_analytics-0.0.0.alpha app/serializers/alert_serializer.rb