Module: CurationConcerns::User

Extended by:
ActiveSupport::Concern
Defined in:
app/models/concerns/curation_concerns/user.rb

Instance Method Summary collapse

Instance Method Details

#to_paramObject

Redefine this for more intuitive keys in Redis



9
10
11
12
# File 'app/models/concerns/curation_concerns/user.rb', line 9

def to_param
  # HACK: because rails doesn't like periods in urls.
  user_key.gsub(/\./, '-dot-')
end

#to_sipity_agentObject



14
15
16
# File 'app/models/concerns/curation_concerns/user.rb', line 14

def to_sipity_agent
  sipity_agent || create_sipity_agent!
end