« Back to channel list

#RubyOnRails - 13 May 2019

« Back 1 day Forward 1 day »
[00:06:37] Haydos: has joined #RubyOnRails
[00:16:13] jgpawletko: has joined #RubyOnRails
[00:27:11] orbyt_: has joined #RubyOnRails
[00:27:51] cnsvc: has joined #RubyOnRails
[00:41:56] crankharder: has joined #RubyOnRails
[00:42:54] braincrash: has joined #RubyOnRails
[00:45:33] xco: has joined #RubyOnRails
[00:46:22] Exuma: has joined #RubyOnRails
[00:48:10] altigraph: has joined #RubyOnRails
[00:48:28] NeXTSUN: has joined #RubyOnRails
[01:08:48] shansen: has joined #RubyOnRails
[01:18:13] jgpawletko: has joined #RubyOnRails
[01:18:40] crankharder: has joined #RubyOnRails
[01:29:57] crankharder: has joined #RubyOnRails
[01:56:14] davidh38: has joined #RubyOnRails
[02:03:20] planigan: has joined #RubyOnRails
[02:17:35] xco: has joined #RubyOnRails
[02:17:45] crankharder: has joined #RubyOnRails
[02:20:40] xco: has joined #RubyOnRails
[02:59:59] crankharder: has joined #RubyOnRails
[03:04:40] planigan: has joined #RubyOnRails
[03:10:05] braincrash: has joined #RubyOnRails
[03:12:13] Technodrome: has joined #RubyOnRails
[03:19:54] weteamsteve: has joined #RubyOnRails
[03:21:59] cnsvc: has joined #RubyOnRails
[03:46:47] Saukk: has joined #RubyOnRails
[03:46:56] creature: has joined #RubyOnRails
[04:33:53] srinidhi: has joined #RubyOnRails
[04:46:11] srinidhi: has joined #RubyOnRails
[05:23:00] davidh38: has joined #RubyOnRails
[05:23:02] conta: has joined #RubyOnRails
[05:23:51] brendan-: has joined #RubyOnRails
[05:26:02] haengma: has joined #RubyOnRails
[05:48:12] pd09041999: has joined #RubyOnRails
[06:01:33] sirensari: has joined #RubyOnRails
[06:05:25] orbyt_: has joined #RubyOnRails
[06:19:04] gambl0re: has joined #RubyOnRails
[06:21:08] orbyt_: has joined #RubyOnRails
[06:22:29] dionysus69: has joined #RubyOnRails
[06:28:53] zacts: has joined #RubyOnRails
[06:32:18] pd09041999: has joined #RubyOnRails
[06:41:32] pd09041999: has joined #RubyOnRails
[06:41:55] Dbugger: has joined #RubyOnRails
[06:43:47] blackmesa: has joined #RubyOnRails
[06:44:11] Ergo: has joined #RubyOnRails
[06:56:22] armyriad: has joined #RubyOnRails
[07:01:13] haengma: has joined #RubyOnRails
[07:01:53] darris: has joined #RubyOnRails
[07:10:03] orbyt_: has joined #RubyOnRails
[07:18:51] davidh38: has joined #RubyOnRails
[07:21:09] crankharder: has joined #RubyOnRails
[07:23:26] lxsameer: has joined #RubyOnRails
[07:31:11] jefffrails35: has joined #RubyOnRails
[07:39:16] Kutakizukari: has joined #RubyOnRails
[07:57:06] mikecmpbll: has joined #RubyOnRails
[08:04:52] mikecmpbll: has joined #RubyOnRails
[08:36:29] cnsvc: has joined #RubyOnRails
[08:53:19] srinidhi: has joined #RubyOnRails
[09:02:06] gregf_: has joined #RubyOnRails
[09:07:51] hammer065: has joined #RubyOnRails
[09:08:10] crankharder: has joined #RubyOnRails
[09:30:43] m_antis: has joined #RubyOnRails
[09:41:42] cnsvc: has joined #RubyOnRails
[10:11:35] Cork: has joined #RubyOnRails
[10:12:32] apparition: has joined #RubyOnRails
[10:27:52] haengma: has joined #RubyOnRails
[10:38:56] garyserj: has joined #RubyOnRails
[10:44:58] garyserj: how does date-remote="true" work like <a href="/blah" data-remote="true">abc</a> I had thought that data-remote was a rails thing but I see it in the html. So what is causing the web browser to make the GET request via AJAX rather than the usual method that causes a webpage to load?
[11:02:42] tbuehlmann: garyserj: this is rails-ujs' doing
[11:05:18] garyserj: ah, so javascript is rewriting the link into one that uses ajax.. is it possible to see what rails-ujs converts it to?
[11:08:33] tbuehlmann: it doesn't convert it, it'll probaby intercept the click and do its thing
[11:08:43] tbuehlmann: somewhere in here: https://github.com/rails/rails/blob/v5.2.3/actionview/app/assets/javascripts/rails-ujs/features/remote.coffee
[11:11:56] cnsvc: has joined #RubyOnRails
[11:24:10] lankanmon: has joined #RubyOnRails
[11:49:27] lubekpl: has joined #RubyOnRails
[11:53:22] cek: has joined #RubyOnRails
[12:01:46] agent_white: has joined #RubyOnRails
[12:05:15] truenito: has joined #RubyOnRails
[12:16:48] cnsvc: has joined #RubyOnRails
[12:55:43] conta1: has joined #RubyOnRails
[12:57:35] helpa: has joined #RubyOnRails
[12:59:12] cek: has joined #RubyOnRails
[12:59:26] jhill_: has joined #RubyOnRails
[13:00:49] arooni_team_b: has joined #RubyOnRails
[13:01:34] GodFather_: has joined #RubyOnRails
[13:01:36] webdestroya: has joined #RubyOnRails
[13:01:50] GodFather: has joined #RubyOnRails
[13:02:00] tris: has joined #RubyOnRails
[13:02:40] uranoss: has joined #RubyOnRails
[13:03:59] DukeDave: has joined #RubyOnRails
[13:14:29] FrankDW: has joined #RubyOnRails
[13:19:53] cnsvc: has joined #RubyOnRails
[13:22:22] endemic: has joined #RubyOnRails
[13:26:17] shtirlic: has joined #RubyOnRails
[13:40:52] Dbugger: has joined #RubyOnRails
[13:46:01] fmccann: has joined #RubyOnRails
[13:52:36] m_antis: has joined #RubyOnRails
[13:57:44] davidh38: has joined #RubyOnRails
[14:15:13] IanMalcolm: has joined #RubyOnRails
[14:19:41] IanMalcolm: has joined #RubyOnRails
[14:25:05] cnsvc: has joined #RubyOnRails
[14:28:24] haengma: has joined #RubyOnRails
[14:31:53] mostlybadfly: has joined #RubyOnRails
[14:36:51] SigizMG: has joined #RubyOnRails
[14:56:02] Exuma: has joined #RubyOnRails
[15:07:20] NL3limin4t0r: has joined #RubyOnRails
[15:09:39] DylanJ: has joined #RubyOnRails
[15:10:59] NL3limin4t0r: Is there a way to provided a dynamic "inverse_of" option for associations? I currently have a model Memo, MemoUser and User. MemoUser is the coupling table, but it also has the column "role" wich corresponds with a certain type of association. eg. 'sender', 'receiver', 'implementor', etc. The "inverse_of" value is dependent upon this role.
[15:13:45] NL3limin4t0r: Here is an example from the Memo model: has_many :memo_implementors, -> { where(role: 'implementor') }, class_name: 'MemoUser', dependent: :destroy
[15:14:21] NL3limin4t0r: has_many :implementors, through: :memo_implementors, source: :user
[15:16:14] NL3limin4t0r: The issue is the MemoUser model where I have: belongs_to :memo, optional: false
[15:20:11] NL3limin4t0r: I'd like to specify something like: belongs_to :memo, optional: false, inverse_of: method(:some_method_that_returns_the_association_name)
[15:48:28] davidh38: has joined #RubyOnRails
[15:54:25] crankharder: has joined #RubyOnRails
[16:01:49] davidh38: has joined #RubyOnRails
[16:16:44] haengma: has joined #RubyOnRails
[16:23:01] brool: has joined #RubyOnRails
[16:50:28] zacts: has joined #RubyOnRails
[16:51:10] jottr: has joined #RubyOnRails
[17:04:19] mikecmpbll: has joined #RubyOnRails
[17:09:17] gambl0re: has joined #RubyOnRails
[17:14:18] Technodrome: has joined #RubyOnRails
[17:14:46] m_antis: has joined #RubyOnRails
[17:22:19] hightower2: has joined #RubyOnRails
[17:25:31] gambl0re: has joined #RubyOnRails
[17:29:09] zacts: has joined #RubyOnRails
[17:48:56] tdy1: has joined #RubyOnRails
[17:56:42] szulak_: has joined #RubyOnRails
[18:13:34] zacts: has joined #RubyOnRails
[18:35:28] sameerynho: has joined #RubyOnRails
[18:41:04] ovnimancer: has joined #RubyOnRails
[18:41:12] kapilp: has joined #RubyOnRails
[19:03:59] agent_white: has joined #RubyOnRails
[19:32:02] brool: has joined #RubyOnRails
[19:39:03] ramfjord: has joined #RubyOnRails
[19:40:37] ramfjord: Hey everyone, as someone coming back to Rails I've been loving the ActiveJob changes with the ability to swap out the queue adapters easily. Does anyone know how I can disable the test adapter temporarily in my test environment though? I am just writing tests for a small monitoring script which queries the DB to find the oldest enqueued job, which is tied specifically to the queue adapter I'm using
[19:41:10] ramfjord: it seems like if I could find the right way to invoke https://api.rubyonrails.org/v5.1.7/classes/ActiveJob/TestHelper/TestQueueAdapter/ClassMethods.html#method-i-disable_test_adapter , that would probably help
[19:42:45] ramfjord: I've tried including/extending ActiveJob::TestHelper::TestQueueAdapter, though my test is already including ActiveJob::TestHelper
[19:48:53] ramfjord: it doesn't seem like ActiveJob::TestHelper really wants to expose control over this to me
[19:55:15] skryking: has joined #RubyOnRails
[19:57:30] szulak_: has joined #RubyOnRails
[19:58:27] MrCrackPotBuilde: has joined #RubyOnRails
[20:00:11] m_antis_: has joined #RubyOnRails
[20:05:05] Croata: has joined #RubyOnRails
[20:05:40] skryking: has joined #RubyOnRails
[20:20:51] skryking: has joined #RubyOnRails
[20:43:16] FrankDW: Hey -- if I had an item get inserted via an API and I wanted to hold on to it for 5 minutes before doing a test, how would I go about scheduling that in Ruby?
[20:43:48] FrankDW: inserting the item on the call is fine -- I want that, but if a similar one comes in that's more important, I only want to do something with the more important one
[20:45:58] octos: has joined #RubyOnRails
[20:47:51] octos: has joined #RubyOnRails
[20:53:56] octos: has joined #RubyOnRails
[21:00:24] s00pcan: has joined #RubyOnRails
[21:04:46] phaul: has joined #RubyOnRails
[21:29:17] cnsvc: has joined #RubyOnRails
[21:31:26] hahuang65: FrankDW I would probably use some kind of job queue mechanism that supports time-based jobs, like you schedule a job for 5 minutes. Then if a new thing comes in, you can delete the scheduled job, if it hasn't been performed yet.
[21:45:22] ur5us: has joined #RubyOnRails
[21:47:22] yehowyada: has joined #RubyOnRails
[21:55:53] timdotrb: has joined #RubyOnRails
[21:59:43] Omnilord: has joined #RubyOnRails
[22:01:51] s00pcan: has joined #RubyOnRails
[22:02:49] cnsvc: has joined #RubyOnRails
[22:05:37] m_antis: has joined #RubyOnRails
[22:13:42] ramfjord: has joined #RubyOnRails
[22:14:34] mikecmpbll: has joined #RubyOnRails
[23:21:55] Technodrome: has joined #RubyOnRails
[23:30:58] Haydos: has joined #RubyOnRails
[23:31:33] gambl0re: has joined #RubyOnRails