Module: CoalescingPanda
- Defined in:
- lib/coalescing_panda.rb,
lib/coalescing_panda/engine.rb,
lib/coalescing_panda/version.rb,
app/models/coalescing_panda/term.rb,
app/models/coalescing_panda/user.rb,
lib/coalescing_panda/bearcat_uri.rb,
lib/coalescing_panda/misc_helper.rb,
app/models/coalescing_panda/group.rb,
app/models/coalescing_panda/course.rb,
lib/coalescing_panda/route_helpers.rb,
app/models/coalescing_panda/section.rb,
app/models/coalescing_panda/session.rb,
lib/coalescing_panda/secure_headers.rb,
app/models/coalescing_panda/lti_nonce.rb,
app/models/coalescing_panda/assignment.rb,
app/models/coalescing_panda/enrollment.rb,
app/models/coalescing_panda/submission.rb,
app/models/coalescing_panda/lti_account.rb,
app/models/coalescing_panda/oauth_state.rb,
lib/coalescing_panda/controller_helpers.rb,
app/models/coalescing_panda/canvas_batch.rb,
lib/coalescing_panda/session_replacement.rb,
app/models/coalescing_panda/group_category.rb,
app/models/coalescing_panda/canvas_api_auth.rb,
app/models/coalescing_panda/assignment_group.rb,
app/models/coalescing_panda/group_membership.rb,
app/models/coalescing_panda/persistent_session.rb,
app/controllers/coalescing_panda/lti_controller.rb,
app/controllers/coalescing_panda/oauth2_controller.rb,
app/helpers/coalescing_panda/canvas_batches_helper.rb,
app/controllers/coalescing_panda/application_controller.rb,
app/models/coalescing_panda/json_with_indifferent_access.rb,
app/controllers/coalescing_panda/canvas_batches_controller.rb
Defined Under Namespace
Modules: CanvasBatchesHelper, ControllerHelpers, MiscHelper, RouteHelpers, SecureHeaders, SessionReplacement
Classes: ApplicationController, Assignment, AssignmentGroup, BearcatUri, CanvasApiAuth, CanvasBatch, CanvasBatchesController, Course, Engine, Enrollment, Group, GroupCategory, GroupMembership, JSONWithIndifferentAccess, LtiAccount, LtiController, LtiNavigationInUse, LtiNonce, NotMounted, Oauth2Controller, OauthState, PersistentSession, Section, Session, SessionNonceMismatch, Submission, Term, User
Constant Summary
collapse
- VERSION =
'5.3.0'
- @@lti_navigation =
{}
- @@staged_navigation =
{}
- @@lti_options =
{}
- @@lti_environments =
{}
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.lti_environments ⇒ Object
38
39
40
|
# File 'lib/coalescing_panda.rb', line 38
def self.lti_environments
@@lti_environments.deep_dup
end
|
.lti_environments=(lti_environments) ⇒ Object
34
35
36
|
# File 'lib/coalescing_panda.rb', line 34
def self.lti_environments=(lti_environments)
@@lti_environments = lti_environments
end
|
.lti_options ⇒ Object
30
31
32
|
# File 'lib/coalescing_panda.rb', line 30
def self.lti_options
@@lti_options.deep_dup
end
|
.lti_options=(lti_options) ⇒ Object
26
27
28
|
# File 'lib/coalescing_panda.rb', line 26
def self.lti_options= lti_options
@@lti_options = lti_options
end
|
.lti_paths ⇒ Object
51
52
53
|
# File 'lib/coalescing_panda.rb', line 51
def self.lti_paths
@@lti_navigation.deep_dup
end
|
.propagate_lti_navigation ⇒ Object
55
56
57
58
59
60
|
# File 'lib/coalescing_panda.rb', line 55
def self.propagate_lti_navigation
@@staged_navigation.each do |k,v|
lti_navigation(k,v)
@@staged_navigation.delete(k)
end
end
|
.register_navigation(navigation) ⇒ Object
42
43
44
|
# File 'lib/coalescing_panda.rb', line 42
def self.register_navigation(navigation)
@@lti_navigation[navigation] ||= {}
end
|
.stage_navigation(navigation, options) ⇒ Object
46
47
48
49
|
# File 'lib/coalescing_panda.rb', line 46
def self.stage_navigation(navigation, options)
@@staged_navigation[navigation] = {} unless @@staged_navigation.has_key?(navigation)
@@staged_navigation[navigation].merge!(options)
end
|
Instance Method Details
#cleanup ⇒ Object
8
9
10
|
# File 'app/models/coalescing_panda/lti_nonce.rb', line 8
def cleanup
CoalescingPanda::LtiNonce.where("coalescing_panda_lti_account_id = ? AND timestamp < ?", b.coalescing_panda_lti_account.id, 15.minutes.ago)
end
|