Sha256: 3c5bc87be0a832b5f20afef34ad1b3507bc2d2506caf8bd6bc5effc467c57f38

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

require 'tramway/profiles/engine'
require 'tramway/profiles/generates/install_generator'

module Tramway
  module Profiles
    class << self
      def records=(*models)
        @@records ||= []
        @@records += (models.map do |model|
          model.to_s.sub(/^\:\:/, '')
        end)
      end

      def records
        defined?(@@records) ? @@records.uniq : []
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tramway-profiles-1.4 lib/tramway/profiles.rb