lib/classmate/user.rb
# Creates an instance of Classmate::User using application config and request parameters
Creates an instance of Classmate::User using application config and request parameters
Creates an instance of Classmate :: User using application config and request parameters
def signature_valid?(config, params)
        param_string = params.except('sig').permit!.to_hash.sort.map{|key, value| "#{key}=#{value}"}.join
        params['sig'] == Digest::MD5.hexdigest(param_string + config.secret_key)
      end
def signature_valid? ( config , params ) param_string = params . except ( 'sig' ) . permit! . to_hash . sort . map { | key , value | "#{key}=#{value}" } . join params [ 'sig' ] == Digest :: MD5 . hexdigest ( param_string + config . secret_key ) end
Creates an instance of Classmate::User using application config and request parameters
Creates an instance of Classmate :: User using application config and request parameters
config
params