Module: CurationConcerns::User
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/curation_concerns/user.rb
Instance Method Summary collapse
-
#to_param ⇒ Object
Redefine this for more intuitive keys in Redis.
- #to_sipity_agent ⇒ Object
Instance Method Details
#to_param ⇒ Object
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_agent ⇒ Object
14 15 16 |
# File 'app/models/concerns/curation_concerns/user.rb', line 14 def to_sipity_agent sipity_agent || create_sipity_agent! end |