lib/tramway/profiles.rb in tramway-profiles-1.3.2.4 vs lib/tramway/profiles.rb in tramway-profiles-1.4

- old
+ new

@@ -4,11 +4,18 @@ require 'tramway/profiles/generates/install_generator' module Tramway module Profiles class << self - attr_writer :records + def records=(*models) + @@records ||= [] + @@records += (models.map do |model| + model.to_s.sub(/^\:\:/, '') + end) + end - attr_reader :records + def records + defined?(@@records) ? @@records.uniq : [] + end end end end