tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
marr has joined #ruby-lang
dsilva has joined #ruby-lang
sferik has joined #ruby-lang
tkuchiki has quit [Ping timeout: 252 seconds]
bmichelsen has quit [Quit: ZZZzzz…]
chouhoulis has joined #ruby-lang
chouhoul_ has joined #ruby-lang
chouhoulis has quit [Read error: Connection reset by peer]
dsilva_ has joined #ruby-lang
iamninja has quit [Remote host closed the connection]
dsilva has quit [Ping timeout: 240 seconds]
dagda1_ has joined #ruby-lang
chouhoul_ has quit [Ping timeout: 240 seconds]
<maloik>
yorickpeterse: you were changing to dotenv right... do you use that in production too?
<yorickpeterse>
maloik: yes
<yorickpeterse>
I know that makes me a sinner but w/e it's easy
<yorickpeterse>
basically we take EC2 userdata, yank the env variables out of it and save it in ".env.userdata"
<yorickpeterse>
which is then loaded by the app
<maloik>
I'm considering doing the same if the team agrees... just ran into a little issue where a new key wasn't found in my own secrets.yml so my tests didn't run
<maloik>
took a little while to figure that out
dsilva has joined #ruby-lang
<maloik>
so I'll either end up writing a gem that stops the test run and/or deploys when that happens, or move to dotenv
<yorickpeterse>
the load process we have is basically: ".env.userdata" -> ".env.$ENV" -> ".env"
<yorickpeterse>
(priority in that order)
charliesome has joined #ruby-lang
charliesome has quit [Client Quit]
dsilva_ has quit [Ping timeout: 258 seconds]
Guest1882 has joined #ruby-lang
benlovell has quit [Ping timeout: 265 seconds]
ta has quit [Ping timeout: 264 seconds]
kirloo has joined #ruby-lang
kirloo is now known as Guest35729
Guest1882 has quit [Ping timeout: 264 seconds]
iamninja has joined #ruby-lang
dsilva has quit [Ping timeout: 272 seconds]
dsilva has joined #ruby-lang
ta has joined #ruby-lang
pablocantero has quit [Remote host closed the connection]
pablocantero has joined #ruby-lang
pablocantero has quit [Remote host closed the connection]
iamninja has quit [Remote host closed the connection]
Iskarlar has joined #ruby-lang
bmichelsen has joined #ruby-lang
mkaesz has joined #ruby-lang
iamninja has joined #ruby-lang
charliesome has joined #ruby-lang
francisfish has joined #ruby-lang
hhatch has joined #ruby-lang
Guest35729 has quit [K-Lined]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arBmind has joined #ruby-lang
arBmind1 has quit [Ping timeout: 240 seconds]
sferik has joined #ruby-lang
pablocantero has joined #ruby-lang
pablocantero has quit [Remote host closed the connection]
pablocantero has joined #ruby-lang
ledestin has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby-lang
dsilva_ has joined #ruby-lang
jimbach has joined #ruby-lang
dsilva has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Remote host closed the connection]
godd2 has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmichelsen has quit [Quit: ZZZzzz…]
jimbach has quit [Ping timeout: 258 seconds]
ledestin has joined #ruby-lang
yfeldblum has joined #ruby-lang
bmichelsen has joined #ruby-lang
ikrima_ has quit [Ping timeout: 255 seconds]
fclausen has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
BubonicPestilenc has quit [Quit: BubonicPestilenc]
chouhoulis has quit [Remote host closed the connection]
t3h_j4n170r has quit [Ping timeout: 258 seconds]
t7y9r has quit [Ping timeout: 265 seconds]
fclausen has quit [Ping timeout: 272 seconds]
t3h_j4n170r has joined #ruby-lang
benlovell has joined #ruby-lang
t7y9r has joined #ruby-lang
Iskarlar has joined #ruby-lang
yfeldblum has joined #ruby-lang
snoopybbt has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
chinmay_dd has joined #ruby-lang
drewxiu has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
yfeldblu_ has quit [Ping timeout: 250 seconds]
ledestin has quit [Quit: ledestin]
drewxiu has quit [Ping timeout: 258 seconds]
scampbell has joined #ruby-lang
chinmay_dd has quit [Ping timeout: 265 seconds]
hinbody has joined #ruby-lang
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
dsilva has joined #ruby-lang
dsilva_ has quit [Ping timeout: 264 seconds]
[spoiler] has joined #ruby-lang
skade has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
gix has quit [Ping timeout: 256 seconds]
caseydriscoll has quit [Remote host closed the connection]
gix has joined #ruby-lang
tkuchiki has joined #ruby-lang
dangerousdave has joined #ruby-lang
diegoviola has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby-lang
mcclurmc_ has joined #ruby-lang
mcclurmc has quit [Ping timeout: 264 seconds]
dsilva_ has joined #ruby-lang
futilegames_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
futilegames has quit [Ping timeout: 264 seconds]
futilegames_ is now known as futilegames
dsilva has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Remote host closed the connection]
Miphix has quit [Quit: Leaving]
tkuchiki has joined #ruby-lang
chouhoulis has joined #ruby-lang
futilegames has quit [Ping timeout: 256 seconds]
midhir has quit [Ping timeout: 272 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 272 seconds]
rcvalle has joined #ruby-lang
chinmay_dd has joined #ruby-lang
midhir has joined #ruby-lang
futilegames has joined #ruby-lang
midhir has quit [Read error: Connection reset by peer]
midhir has joined #ruby-lang
malconis has joined #ruby-lang
pablocantero has quit [Remote host closed the connection]
dsilva has joined #ruby-lang
dsilva_ has quit [Ping timeout: 272 seconds]
melter has quit [Quit: Client exiting]
AKASkip has quit [Ping timeout: 250 seconds]
jimbach has joined #ruby-lang
ta has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
tkuchiki has joined #ruby-lang
pablocantero has joined #ruby-lang
shinnya has joined #ruby-lang
oleo has joined #ruby-lang
kiyote23 has joined #ruby-lang
red_menace has joined #ruby-lang
Iskarlar has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lewix has joined #ruby-lang
setanta has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
ConstantineXVI has joined #ruby-lang
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sferik has joined #ruby-lang
yfeldblum has quit [Ping timeout: 258 seconds]
dsilva_ has joined #ruby-lang
senor_jalapeno has joined #ruby-lang
dsilva has quit [Ping timeout: 250 seconds]
ConstantineXVI has quit [Remote host closed the connection]
ConstantineXVI has joined #ruby-lang
dsilva has joined #ruby-lang
cornerma1 has joined #ruby-lang
dsilva_ has quit [Ping timeout: 265 seconds]
francisfish has quit [Remote host closed the connection]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
svajone has joined #ruby-lang
cornerman has quit [Ping timeout: 240 seconds]
<svajone>
Hello. Quick question, what's the best way to select items on an array?
cornerma1 is now known as cornerman
sferik has joined #ruby-lang
<darix>
svajone: it depends
francisfish has joined #ruby-lang
<svajone>
Say, I have an AR called orders that belongs to a table called users. I want to go through the orders whilst selecting only users that are active.
sferik has quit [Client Quit]
<apeiros>
svajone: Array#select?
<svajone>
I did something like this, orders.each { |order| order.user.status == active } but it seems to give me inconsistent results, sometimes it would return 2 or 3 or even 1 (I only have 5 sets of data, 3 are active, 2 are not).
<svajone>
Sorry, I mean orders.select
<apeiros>
svajone: AR? as in ActiveRecord model? let the db do the selection.
whippythellama has joined #ruby-lang
<apeiros>
use .where
<apeiros>
also AR models and relations are NOT arrays.
<svajone>
I see.
lapide_viridi has joined #ruby-lang
<svajone>
I thought they were?
<apeiros>
no. what gave you that idea?
pricees has joined #ruby-lang
cmhobbs has joined #ruby-lang
<svajone>
Someone who is more senior in Ruby in my work told me.
<svajone>
Says, it's an AR but has more methods or something.
sferik has joined #ruby-lang
<apeiros>
then either he poorly explained or should educate up
francisfish has quit [Ping timeout: 255 seconds]
<svajone>
Maybe or maybe I misunderstood.
<apeiros>
s/he/they/ … I'll never learn. sob.
gix has quit [Ping timeout: 240 seconds]
bmichelsen has quit [Quit: ZZZzzz…]
j2p2 has joined #ruby-lang
midhir has quit [Ping timeout: 245 seconds]
<svajone>
I'll give it a whirl.
Steven___ has joined #ruby-lang
kappaloris has joined #ruby-lang
caseydriscoll has joined #ruby-lang
gix has joined #ruby-lang
<kappaloris>
hello, can please anyone tell me wether Net::SSH is threadsafe or not?
Steven___ has left #ruby-lang [#ruby-lang]
<apeiros>
kappaloris: nothing which does not explicitly state to be thread safe is thread safe.
<ljarvis>
wat
<ljarvis>
ah nothing
<ljarvis>
that sentence reads so weird
bmichelsen has joined #ruby-lang
<apeiros>
since I say it somewhat often - better phrasings?
<matti>
Yo apeiros
<apeiros>
hi matti
<matti>
apeiros: You need a tatoo - "No, it's not thread-safe".
j2p2 has quit [Ping timeout: 256 seconds]
<ljarvis>
i'd just negate it, anything which does not explicitly state to be thread safe is not thread safe, but yeah it was really just me missing the "nothing" it's still a double negative
<yorickpeterse>
get a tramp stamp with "tharedngi" as the text
<ljarvis>
"always semaphoring"
<yorickpeterse>
haha
<yorickpeterse>
or do something like
<yorickpeterse>
mutex.synchronize { <butt here> }
<yorickpeterse>
Though I wonder where you'd put the } then
noaon has joined #ruby-lang
<darix>
svajone: ugh ... dont load all users into the memory of your app just to filter them there. -.-
<darix>
yorickpeterse: but tbh ... IBM isnt really doing nodejs until they ported it to s390 ;)
<yorickpeterse>
Alternative title: "How we wasted thousands of dollars by using a single-core language"
<apeiros>
callbacks are great. but you can create horrible spaghetti with it.
<ljarvis>
i really dislike callbacks
<darix>
microsoft is using nodejs for the azure cloud cmdline tools
<ljarvis>
cli-scale?
dsilva has quit [Ping timeout: 256 seconds]
<yorickpeterse>
lol wtf
<yorickpeterse>
Even using plain Bash makes more sense there
ledestin has joined #ruby-lang
* yorickpeterse
wrote half a build server in Bash
* yorickpeterse
fears the day he doesn't remember what it does
<yorickpeterse>
Granted the rest is Jenkins/Java, can't get any worse any way
davs has joined #ruby-lang
<darix>
yorickpeterse: imho ... bash sucks for everything beyond calling a few other tools. as soon as you start using array hashes or doing some more string mangling most of the other languages would be better.
<ljarvis>
lies
<ljarvis>
php
<yorickpeterse>
darix: that's basically what it does, hence I used Bash
klmlfl has quit [Remote host closed the connection]
<darix>
that static linking argument again ...
<darix>
we should really rip static linking out of our linker and compilers
ta has joined #ruby-lang
<headius>
we should really rip GPL out of our systems, if you ask me
<darix>
headius: i dont think your employer would agree ;)
tenderlove has joined #ruby-lang
<yorickpeterse>
I agree on the GPL part
<headius>
we use many licenses
<darix>
headius: also LGPL is only an issue if you do link statically.
<darix>
for dynamic linking it is fine.
<headius>
has that been proven in court?
<headius>
and what comprises dynamic linking? All classes are dynamically linked on JVM, for example
<darix>
headius: i dont think anyone sued over that part yet. i think most cases in court were about plain GPL
<headius>
we had to rip out all GPL or LGPL-only libraries in JRuby because many companies won't touch them
<workmad3>
also, both GPL and LGPL do nothing if you aren't distributing the built binaries anyway... e.g. if you're using GPL code in some components that are never distributed, only exist on your server, you have no requirement to release any code
<darix>
that too
<darix>
but there is AGPL for that ;)
<darix>
just saying
chinmay_dd has quit [Quit: Leaving]
<headius>
Apache-2.0 ftw
<headius>
or similar licenses like EPL
<yorickpeterse>
workmad3: thing is, we do distribute binaries
<yorickpeterse>
Not statically linked though
<yorickpeterse>
well except for the stuff we vendor (e.g. libffi)
svajone has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
mistym has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
kapil__ has quit [Quit: Connection closed for inactivity]
hanmac1 has quit [Quit: Leaving.]
rippa has joined #ruby-lang
kwd has quit [Quit: Sleeping now. ZZZzzz…]
mistym has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: zzz]
dwknoxy has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
j2p2 has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
svajone has joined #ruby-lang
djwilcox has joined #ruby-lang
GBrawl has joined #ruby-lang
<djwilcox>
i installed ruby with rvm, but im having some issues with my bash $PATH
<djwilcox>
ruby is installed here - /usr/local/rvm/gems/ruby-1.9.3-p551/bin
<djwilcox>
anyone know correct way to add this to my bash path
skade has quit [Quit: Computer has gone to sleep.]
mcclurmc has quit [Ping timeout: 244 seconds]
centrx has joined #ruby-lang
chussenot has quit [Quit: chussenot]
mistym has joined #ruby-lang
oleo__ has joined #ruby-lang
oleo__ has quit [Read error: Connection reset by peer]
midhir has quit [Remote host closed the connection]
ruby-lang713 has joined #ruby-lang
mcclurmc_ has quit [Remote host closed the connection]
oleo has quit [Read error: Connection reset by peer]
mcclurmc has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
pablocantero has joined #ruby-lang
oleo has joined #ruby-lang
kiyote23 has joined #ruby-lang
vladgh has joined #ruby-lang
ruby-lang713 has quit [Ping timeout: 246 seconds]
kiyote23 has quit [Ping timeout: 250 seconds]
S3thc0n has joined #ruby-lang
dsilva_ has joined #ruby-lang
svajone has quit [Quit: Leaving]
<S3thc0n>
Hello, I am trying to use Ruby for an API which isn't easily accessible in other ways, but I whenever I try executing a script I get a 'cannot load such file' error with seemingly EVERY 'require'. My version is 1.9.3 on Windows. What am I doing wrong?
dsilva has quit [Ping timeout: 244 seconds]
Narzew has joined #ruby-lang
ConstantineXVI has quit []
<centrx>
S3thc0n, Hard to say. First impression is Windows does not work very well with Ruby and Ruby 1.9.3 is really quite old
<S3thc0n>
centrx: Thanks, I'll try with a Vm
dsilva_ has quit [Ping timeout: 240 seconds]
benlovell has joined #ruby-lang
dsilva has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
benlovell has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby-lang
Lewix has joined #ruby-lang
ConstantineXVI has joined #ruby-lang
ConstantineXVI has quit [Client Quit]
futilegames has joined #ruby-lang
mcclurmc has joined #ruby-lang
davs has quit [Quit: Lost terminal]
GBrawl has joined #ruby-lang
ConstantineXVI has joined #ruby-lang
klmlfl has joined #ruby-lang
stamina has quit [Quit: WeeChat 1.0.1]
stamina has joined #ruby-lang
RobertBirnie has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
kiraz_ has joined #ruby-lang
wallerdev has joined #ruby-lang
<kiraz_>
I am new to IRC and trying to understand the dynamic
<kiraz_>
whats happening here?
<kiraz_>
can someone explain:)?
yfeldblum has joined #ruby-lang
<red_menace>
not much - what are you looking for?
<kiraz_>
trying to udnerstand the dynamic in comparaison to reddit or stack overflow
<red_menace>
depends on who is actually online, but reddit or SO are not real-time
stamina has quit [Ping timeout: 258 seconds]
<centrx>
also reddit sucks
<kiraz_>
why?
<centrx>
they used to be cool
<kiraz_>
what is it in the real time that you like?
<havenwood>
kiraz_: there are snakes in the tubes delivering messages
<kiraz_>
snakes??
ta has joined #ruby-lang
<red_menace>
SO can be a bit rough also, especially if you are a noob
<havenwood>
kiraz_: yeah, that's how irc works
<centrx>
yes IRC is very dangerous
<centrx>
snakes, trolls,...
<red_menace>
FBI...
<kiraz_>
i see
caseydriscoll has joined #ruby-lang
<kiraz_>
so why are you using it??
<centrx>
hookers and coke
<red_menace>
it depends on what you are looking for - this conversation, for example, would not happen on reddit or SO
<havenwood>
kiraz_: a higher percent of irc traffic is over tor
yfeldblum has quit [Ping timeout: 272 seconds]
<centrx>
kiraz_, There's no better way than IRC to actually talk to a group of people
<centrx>
kiraz_, Skype, Twitter, etc. are just knock-offs of IRC
<red_menace>
yeah IRC is way old
<havenwood>
kiraz_: but irc is more conversational. responses can be quicker, depends on the channel. it's not unusual for it to take minutes or hours to get a response, depends.
<havenwood>
kiraz_: a chat
<havenwood>
kiraz_: not a bulletin board or forum
allomov has quit [Remote host closed the connection]
<red_menace>
the conversations are a lot more dynamic
ta has quit [Ping timeout: 250 seconds]
<havenwood>
flurries of activity, then silence.
<kiraz_>
what about the anonymity? do you like this?
mistym has quit [Remote host closed the connection]
sarkyniin has quit [Quit: Quitte]
AKASkip has quit [Ping timeout: 240 seconds]
<yorickpeterse>
Darn parser tables
<yorickpeterse>
(╯°□°)╯︵ ┻━┻
<yorickpeterse>
At the end of the tunnel I can see how these bastards work, but holy crap it's explained in stupid ways
dsilva_ has quit [Ping timeout: 264 seconds]
shinnya has quit [Ping timeout: 240 seconds]
scampbell has quit [Ping timeout: 258 seconds]
mcclurmc has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
snooc has joined #ruby-lang
snooc has left #ruby-lang [#ruby-lang]
ikrima_ has joined #ruby-lang
wallerdev has joined #ruby-lang
arooni-mobile has joined #ruby-lang
chills42 has joined #ruby-lang
_whitelogger_ has joined #ruby-lang
pskosinski_ has joined #ruby-lang
kalleth_ has joined #ruby-lang
heftig_ has joined #ruby-lang
mistym has joined #ruby-lang
xsdg_ has joined #ruby-lang
benlovell has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
oleo__ has joined #ruby-lang
tekacs has joined #ruby-lang
GarethAdams_ has joined #ruby-lang
GarethAdams_ has joined #ruby-lang
shtirlic_ has joined #ruby-lang
tekacs is now known as Guest36707
shinnya_ has joined #ruby-lang
unsymbol_ has joined #ruby-lang
hagabaka has quit [Ping timeout: 245 seconds]
hplar_ has joined #ruby-lang
womble` has joined #ruby-lang
skade has joined #ruby-lang
tzero_ has joined #ruby-lang
fusillicode has joined #ruby-lang
benlovell has quit [Ping timeout: 272 seconds]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Narzew has quit [Ping timeout: 245 seconds]
ConstantineXVI has quit [Remote host closed the connection]
oleo__ has quit [Quit: Verlassend]
dsilva_ has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 256 seconds]
malconis has joined #ruby-lang
fusillicode has quit [Ping timeout: 258 seconds]
hagabaka has joined #ruby-lang
lapide_viridi has quit [Read error: Connection reset by peer]
shinnya has quit [*.net *.split]
Lewix has quit [*.net *.split]
oleo has quit [*.net *.split]
spastorino has quit [*.net *.split]
j2p2 has quit [*.net *.split]
GarethAdams has quit [*.net *.split]
fusillicode1 has quit [*.net *.split]
apeiros has quit [*.net *.split]
toretore has quit [*.net *.split]
kith has quit [*.net *.split]
znz_jp has quit [*.net *.split]
womble has quit [*.net *.split]
unsymbol has quit [*.net *.split]
pskosinski has quit [*.net *.split]
_whitelogger has quit [*.net *.split]
Guest45628 has quit [*.net *.split]
shtirlic has quit [*.net *.split]
heftig has quit [*.net *.split]
tzero has quit [*.net *.split]
xsdg has quit [*.net *.split]
kalleth has quit [*.net *.split]
hplar has quit [*.net *.split]
GarethAdams_ is now known as GarethAdams
spastorino_ is now known as spastorino
dsilva has quit [Ping timeout: 272 seconds]
Narzew has joined #ruby-lang
lapide_viridi has joined #ruby-lang
oleo__ has joined #ruby-lang
jgpawletko is now known as jgpawletko_away
skade has quit [Ping timeout: 272 seconds]
oleo__ is now known as oleo
pskosinski_ is now known as pskosinski
havenwood has quit [Remote host closed the connection]
dagda1 has joined #ruby-lang
LapideViridi has joined #ruby-lang
_whitelogger has joined #ruby-lang
arBmind has joined #ruby-lang
_whitelogger has joined #ruby-lang
chills42 has joined #ruby-lang
<womble`>
alec1: Not based on that description.
charliesome has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chills42 has quit [Remote host closed the connection]
alec1 has left #ruby-lang [#ruby-lang]
yfeldblum has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
oleo has quit [Quit: Verlassend]
oleo has joined #ruby-lang
caseydriscoll has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
workmad3 has quit [Client Quit]
workmad3 has joined #ruby-lang
apeiros__ is now known as apeiros
benlovell has joined #ruby-lang
fclausen has joined #ruby-lang
lapideviridi has quit [Read error: Connection reset by peer]
drewxiu has joined #ruby-lang
j2p2 has joined #ruby-lang
arBmind has joined #ruby-lang
yfeldblum has joined #ruby-lang
benlovell has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby-lang
sferik has quit [Read error: Connection reset by peer]
sferik has joined #ruby-lang
znz_jp has joined #ruby-lang
meizaps has quit [Ping timeout: 258 seconds]
svajone has joined #ruby-lang
<svajone>
Looking for the person who told me earlier than ActiveRecords are not arrays.
<svajone>
When using ruby's << method to push records into an ActiveRecord, what are the consequences?
meizaps has joined #ruby-lang
neurodam1ge has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Remote host closed the connection]
godd2 has joined #ruby-lang
neurodamage has joined #ruby-lang
<workmad3>
svajone: a) #rubyonrails is a better channel for activerecord questions
<toertore>
if by "an ActiveRecord" you mean an instance of ActiveRecord::Base, i'm pretty sure the consequence is a NoMethodError
kurko__ has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
<workmad3>
svajone: b) << works on has_many associations within activerecord, not just any activerecord derived class
<svajone>
workmad3, thanks!
<workmad3>
svajone: c) the behaviour of << can be affected by configuration values away from where you're using it, so it can be non-obvious exactly what will happen when you use it
banister has joined #ruby-lang
<svajone>
Oh, well the situation is this, first, I query a model using a set of scope, then after that query another model using a certain type of filters (scopes are not permissible at this point, let's assume that). And I want t push the second queried model to the first one using the << method, I just want to know what would the effects be.
kurko___ has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Ping timeout: 245 seconds]
<workmad3>
svajone: I'd suggest asking the question in #rubyonrails where they (and maybe me) will probably ask you for actual code because talking in generalities can be pretty confusing
Lingo____ has joined #ruby-lang
charliesome has quit [Quit: zzz]
vladgh has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
vladgh has joined #ruby-lang
senor_jalapeno has quit [Ping timeout: 272 seconds]
vladgh has quit [Remote host closed the connection]
vladgh has joined #ruby-lang
vladgh has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
Cyrano has joined #ruby-lang
justinreyesv has joined #ruby-lang
yfeldblum has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kiyote23 has joined #ruby-lang
skade has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
vladgh has joined #ruby-lang
nomadicoder has quit [Ping timeout: 258 seconds]
kurko___ has joined #ruby-lang
vladgh has quit [Remote host closed the connection]
kiyote23 has quit [Ping timeout: 244 seconds]
vladgh has joined #ruby-lang
centrx has quit [Quit: Did gyre and gymble in ye wabe]