Sergio Cambra

Results 143 comments of Sergio Cambra
trafficstars

Can someone with this problem write a failing test? Or provide a sample app?

Do you have some ideas about implementation?

invitations_for_period is not needed, invitation_limit can be used, class.invitation_limit would be the reset value time check could be done in has_invitations

I tried to find difference with ruby and js libraries, but I couldn't. Although I was checking v4.js because I saw a test for s3 service: https://github.com/aws/aws-sdk-js/blob/master/lib/signers/v4.js#L182 However, I have...

I don't understand this issue. Why invite_key is not configured to be unique? Invite_key can be set to more than one column, in cases when one column, such as email,...

Maybe I didn't know the option :module, or it was added after I created this gem. It must be fixed in [lib/devise_invitable/mapping.rb](https://github.com/scambra/devise_invitable/blob/master/lib/devise_invitable/mapping.rb) Can you try changing it to this? ```ruby...

I had to disabled autocommit in mariadb adding autocommit=0 to [mysqld] section, otherwise freeswitch was flooding log with this error. I don't know why it fails to set autocommit off....

I got these error in the log again, although autommit is disabled in config, checked with: ``` sudo mysql -e "select @@autocommit" +--------------+ | @@autocommit | +--------------+ | 0 |...

I thought disabling autocommit by default in mariadb would prevent this issue, but switch_core_sqldb.c enables and disables autocommit: * Line 1001 disables autocommit: https://github.com/signalwire/freeswitch/blob/bf62bd8a7fd01339f4251cc23311b95ed768b109/src/switch_core_sqldb.c#L1001 * Line 1041 enables autocommit: https://github.com/signalwire/freeswitch/blob/bf62bd8a7fd01339f4251cc23311b95ed768b109/src/switch_core_sqldb.c#L1041...

It may be simliar to this issue: https://github.com/rack/rack/issues/1725 According to the answer, something is returning the user in the body array which rack gets on line 27: https://github.com/rack/rack/blob/v2.2.5/lib/rack/etag.rb#L27 DeviseInvitable is...