Module: RedboothRuby::Operations::Base::ClassMethods

Includes:
Helpers
Defined in:
lib/redbooth-ruby/operations/base.rb

Instance Method Summary collapse

Methods included from Helpers

#camelize, #underscore

Instance Method Details

#options_for_request(attributes) ⇒ Hash

Options for request overwrite this in the model to set security

Returns:

  • (Hash)


10
11
12
13
14
15
# File 'lib/redbooth-ruby/operations/base.rb', line 10

def options_for_request(attributes)
  fail AuthenticationError unless attributes[:session]
  {
    session: attributes[:session]
  }
end