app/presenters/lcms/engine/document_presenter.rb in lcms-engine-0.2.0 vs app/presenters/lcms/engine/document_presenter.rb in lcms-engine-0.3.0
- old
+ new
@@ -154,14 +154,12 @@
def short_title
assessment? ? doc_type : "Lesson #{lesson}"
end
def short_url
- # TODO: Temporary turning off short url
- ''
- # @short_url ||= Bitly.client
- # .shorten(Rails.application.routes.url_helpers.document_url(self))
- # .short_url
+ @short_url ||= Bitly.client
+ .shorten(Rails.application.routes.url_helpers.document_url(self))
+ .short_url
end
def standards
ld_metadata.standard.presence || ld_metadata.lesson_standard
end