Page 1 of 7 | Next »
[02:09:47] GriffinHeart: Hi everyone, for a module that is not supposed to be included anywhere what is the practical difference between `mattr_accessor :var` vs `class << self; attr_accessor :var; end`?
[02:11:17] GriffinHeart: Trying to figure out an alternative where rubocop doesn't complain about `@@user_model = nil # rubocop:disable Style/ClassVars`
[05:50:58] GriffinHeart: Oh I found it, was trying to do it like `BLEH = <<-EOF something EOF.freeze` but its `BLEH = <<-EOF.freeze something EOF` (with the appropriate line breaks)
[01:23:30] GriffinHeart: Hi everyone, in rails c when I do Rails.logger.debug 'something' I get something twice in the output, how would I start debugging this?
[01:24:20] GriffinHeart: Config seems ok, with just a tagged logger going to a logger for the STDOUT
[01:26:58] GriffinHeart: Radar: Yeah sure, I'm just saying like if you already have the logs going to STDOUT (by logger configuration) seems a bit redundant to also log again there
[01:27:51] GriffinHeart: Radar: I understand the behaviour in other outputs, like file, it would be a pain to always have to open
[01:29:20] GriffinHeart: Radar: I understand why it's logging twice since you said it outputs whatever goes into the logger to the console, just wondering if a change would be accepted
[01:30:21] GriffinHeart: I didn't call it a bug, I would call it an improvement? Detect if the logger outputs to the stdout, if it does and we're in the console then don't output again
[01:31:57] GriffinHeart: actually thought it was a bug or some gem messing up my logger, didn't find the article that talks about the logger console output.
[01:33:26] GriffinHeart: Radar: Thanks for the quick clarification, it has been bugging me for quite a while
[01:48:59] GriffinHeart: Radar: Would you say this is the place where that behaviour is being turned on? https://github.com/rails/rails/blob/4-2-stable/railties/lib/rails/commands/server.rb#L14
[01:50:43] GriffinHeart: hmmm...was trying to follow the rails c command but get lost in https://github.com/rails/rails/blob/4-2-stable/railties/lib/rails/engine.rb#L435
[01:59:03] GriffinHeart: Radar: Thank you, guess I'll keep looking when I have more time. I want to get more familiar with the internals of Rails
[02:01:28] GriffinHeart: Hi everyone, in rails c when I do Rails.logger.debug 'something' I get something twice in the output, how would I start debugging this?