Sha256: 654e754b7a2333c2c01a05718b6cdd3f32e8a518a338bb07e18762f536b1a9c8

Contents?: true

Size: 183 Bytes

Versions: 13

Compression:

Stored size: 183 Bytes

Contents

module Kms
  class Snippet < ActiveRecord::Base
    include CompileTemplates

    validates :name, :slug, presence: true

    def register_id
      ['_', slug].join
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
kms-1.2.1 app/models/kms/snippet.rb
kms-1.2.0 app/models/kms/snippet.rb
kms-1.1.0 app/models/kms/snippet.rb
kms-1.0.1 app/models/kms/snippet.rb
kms-1.0.0 app/models/kms/snippet.rb
kms-0.9.0 app/models/kms/snippet.rb
kms-0.8.0 app/models/kms/snippet.rb
kms-0.7.0 app/models/kms/snippet.rb
kms-0.6.0 app/models/kms/snippet.rb
kms-0.5.0 app/models/kms/snippet.rb
kms-0.4.2 app/models/kms/snippet.rb
kms-0.4.1 app/models/kms/snippet.rb
kms-0.4.0 app/models/kms/snippet.rb