Skip to content

Commit

Permalink
Minor comment additions
Browse files Browse the repository at this point in the history
  • Loading branch information
spohlenz committed Mar 10, 2021
1 parent 7274d1e commit 6887a8b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/trestle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ module Trestle
require_relative "trestle/resource"

# The registry records all active Trestle admins and facilitates lookups.

mattr_accessor :registry
self.registry = Registry.new

class << self
# Expose registry methods on Trestle module
delegate :register, :lookup, :lookup_model, :admins, to: :registry
end

Expand Down Expand Up @@ -62,7 +62,10 @@ def self.navigation(context)
Navigation.build(blocks, context)
end

# Returns the I18n fallbacks for the given locale
# Returns the I18n fallbacks for the given locale.
#
# This is used from within a Sprockets asset (JavaScript)
# to determine which locale files to include.
#
# Examples
#
Expand Down

0 comments on commit 6887a8b

Please sign in to comment.