class TrailGuide::Adapters::Participants::Base::Adapter
Attributes
config[R]
configuration[R]
context[R]
Public Class Methods
new(context, config)
click to toggle source
# File lib/trail_guide/adapters/participants/base.rb, line 26 def initialize(context, config) @context = context @config = config end
Public Instance Methods
[](key)
click to toggle source
# File lib/trail_guide/adapters/participants/base.rb, line 36 def [](key) raise NotImplementedError, "You must override the `[]` method in your inheriting adapter class" end
[]=(key, value)
click to toggle source
# File lib/trail_guide/adapters/participants/base.rb, line 40 def []=(key, value) raise NotImplementedError, "You must override the `[]=` method in your inheriting adapter class" end
delete(key)
click to toggle source
# File lib/trail_guide/adapters/participants/base.rb, line 44 def delete(key) raise NotImplementedError, "You must override the `delete` method in your inheriting adapter class" end
destroy!()
click to toggle source
# File lib/trail_guide/adapters/participants/base.rb, line 48 def destroy! raise NotImplementedError, "You must override the `destroy!` method in your inheriting adapter class" end
key?(key)
click to toggle source
# File lib/trail_guide/adapters/participants/base.rb, line 56 def key?(key) raise NotImplementedError, "You must override the `key?` method in your inheriting adapter class" end
keys()
click to toggle source
# File lib/trail_guide/adapters/participants/base.rb, line 52 def keys raise NotImplementedError, "You must override the `keys` method in your inheriting adapter class" end
subject()
click to toggle source
# File lib/trail_guide/adapters/participants/base.rb, line 31 def subject context.try(:trailguide_user) || context.try(:current_user) end
Also aliased as: user
to_h()
click to toggle source
# File lib/trail_guide/adapters/participants/base.rb, line 60 def to_h raise NotImplementedError, "You must override the `to_h` method in your inheriting adapter class" end