lib/coalescing_panda.rb in coalescing_panda-0.0.11 vs lib/coalescing_panda.rb in coalescing_panda-1.0.0
- old
+ new
@@ -7,21 +7,21 @@
class LtiNavigationInUse < StandardError;end
class NotMounted < StandardError;end
@@lti_navigation = {}
@@staged_navigation = {}
- @@lti_options
+ @@lti_options = {}
def self.lti_options= lti_options
@@lti_options = lti_options
end
def self.lti_options
@@lti_options.deep_dup
end
def self.register_navigation(navigation)
- @@lti_navigation[navigation] = {}
+ @@lti_navigation[navigation] ||= {}
end
def self.stage_navigation(navigation, options)
@@staged_navigation[navigation] = {} unless @@staged_navigation.has_key?(navigation)
@@staged_navigation[navigation].merge!(options)