Module: Tramway::Profiles
- Defined in:
- lib/tramway/profiles.rb,
lib/tramway/profiles/engine.rb,
lib/tramway/profiles/version.rb,
app/jobs/tramway/profiles/application_job.rb,
app/mailers/tramway/profiles/application_mailer.rb,
app/controllers/tramway/profiles/application_controller.rb
Defined Under Namespace
Modules: Generators, LinksHelper
Classes: ApplicationController, ApplicationJob, ApplicationMailer, Engine, SocialNetwork, SocialNetworkDecorator
Constant Summary
collapse
- VERSION =
'1.4.1.1'
Class Method Summary
collapse
Class Method Details
.records ⇒ Object
16
17
18
|
# File 'lib/tramway/profiles.rb', line 16
def records
defined?(@@records) ? @@records.uniq : []
end
|
.records=(models) ⇒ Object
9
10
11
12
13
14
|
# File 'lib/tramway/profiles.rb', line 9
def records=(models)
@@records ||= []
@@records += (models.map do |model|
model.to_s.sub(/^\:\:/, '')
end)
end
|