<yakko> mpapis: you mean inside the action itself?
<mpapis> I think yes ... not much of rails user in last years
davispuh has joined #rubygems
<yakko> mpapis: it's simple, you want to authorize the resource to the current user right after you've loaded it, putting it all in the action makes it very bad to read
<yakko> mpapis: that along with nested resources were my 2 main reasons why I decided to write this gem
<mpapis> yakko, putting it into action makes it happen i right place, keep before for all ... or am I missing something important except moving code to different place?
<mpapis> i=in
<yakko> mpapis: nah, you're not missing anything
huoxito has joined #rubygems
<yakko> it's really all it does, makes your code more readable
<mpapis> yakko, then I would register it on top level (above before....) and make them replace the def's
<yakko> exactly
<yakko> from a readability perspective, when def update finds the resource AND updates it, it's hurting the Single Responsibility principle
<yakko> which is OK when you only have HTML
<yakko> gets acceptable when you have format.json
<mpapis> I do not care much for all the rules, just noticing duplication of the defs and your "definitions"
<yakko> but is turned into hell when you have situations with more complex logic than that
<mpapis> provide better dsl for it
huoxito has quit [Ping timeout: 245 seconds]
<yakko> that gem is an alternative to others such as inherited resources, for people like me who don't like too much magic in their code
<qrush_> ping ping
<qrush_> we're down
<qrush_> evan: dwradcliffe vertis samkottler
<dwradcliffe> yup, looking now
<qrush_> back alive
<yakko> qrush_: that was quick
<qrush_> agreed
<mpapis> yakko, moving code from defs to dsl in before... is magic for me
<yakko> mpapis: there's a scaffold_controller template to help you do that
<qrush_> well thats fun
<dwradcliffe> still not really fixed
<yakko> mpapis: installing all my ruby dependencies, THAT magic is fucking awesome! <3
<mpapis> yakko, I mean before_action only(:index){} feels like duplication of def index
<qrush_> dwradcliffe: what happened?
<yakko> mpapis: as I said, it's ACTUAL benefit is when you have to authorize loaded resources OR when you have nested resources
drbrain has joined #rubygems
<mpapis> yakko, 1) you still have to define all the methods, 2) you have part of code in only(:create) and in def create
fidothe___ has joined #rubygems
<yakko> mpapis: and if you think about it, most cases of nested resources require authorization logic
electrical_ has joined #rubygems
<mpapis> yakko, then your docs suck at explaining the difference
akahn_ has joined #rubygems
mjc__ has joined #rubygems
<mpapis> yakko, and even then, what's the difference, the before_... would do all the important stuff, show "diff -u" of old code and new code, how does it improve for auth
<yakko> mpapis: I value your input on documentation
<mpapis> yakko, just trying to understand why I should promote it, from the example pic and readme - I do not get the benefit of it
yo61_ has joined #rubygems
<yakko> mpapis: I will work on making it more explanatory, I have also been working on another open source project for Rails, I have a day job, and I'm newly married
fidothe__ has quit [Ping timeout: 272 seconds]
Fenhl has quit [Ping timeout: 272 seconds]
imslavko_ has quit [Ping timeout: 272 seconds]
electrical has quit [Ping timeout: 272 seconds]
Emily has quit [Ping timeout: 272 seconds]
akahn has quit [Ping timeout: 272 seconds]
yo61 has quit [Ping timeout: 272 seconds]
mjc_ has quit [Ping timeout: 272 seconds]
fidothe___ is now known as fidothe__
Emily_ has joined #rubygems
Emily_ is now known as Emily
Emily has quit [Changing host]
Emily has joined #rubygems
<yakko> my spouse is often unhappy with my absence, I try to make do
<mpapis> yakko, oh newly married, have a lot of fun as long as it lasts, all the other things get in the way later (OSS)
<dwradcliffe> qrush_: PG is overloaded at the moment
<qrush_> anything i can help with?
Fenhl has joined #rubygems
electrical_ is now known as electrical
imslavko_ has joined #rubygems
akahn_ is now known as akahn
yo61_ is now known as yo61
mjc__ is now known as mjc_
thumpba has quit [Remote host closed the connection]
<yakko> mpapis: this is a gem to help beginners, thanks for pointing out my deficit on documentation, sometimes I get a little too much in my head and forget the presentation side
thumpba has joined #rubygems
<mpapis> yakko, is exactly the same thing I do - assume to much and think everybody knows what the hell I talk about
<mpapis> :)
<yakko> mpapis: I had a great friend coaching me on that once https://twitter.com/mpapis/status/502879164899545088
<dwradcliffe> qrush_: DDOS
<qrush_> oh fuck
<dwradcliffe> well really just DOS
<dwradcliffe> someone crawling the site
<qrush_> can we block their ip?
<dwradcliffe> yeah already done
<dwradcliffe> recovering now
<yakko> crawlers should put a sleep call instead of multiple threads =/
Fenhl_ has joined #rubygems
<mpapis> qrush_, dwradcliffe nothing that fail2ban could handle with good rules?
ddd has quit [*.net *.split]
<dwradcliffe> yeah we're going to add some rate limiting in the next few days
<dwradcliffe> and also speed up our Time To Block
<mpapis> make sure to not rate limit travis, they already hit problems sometimes
<dwradcliffe> good call
weeb1e has left #rubygems ["http://quassel-irc.org - Chat comfortably. Anywhere."]
Fenhl has quit [*.net *.split]
Fenhl_ is now known as Fenhl
luislavena has joined #rubygems
<luislavena> drbrain: hello
huoxito has joined #rubygems
ddd has joined #rubygems
ddd is now known as Guest95651
davispuh has quit [Remote host closed the connection]
Kaltiz has quit [Ping timeout: 252 seconds]
Fenhl_ has joined #rubygems
imslavko__ has joined #rubygems
freedrul1 has joined #rubygems
luislave_ has joined #rubygems
drbrain_ has joined #rubygems
luislave_ has quit [Client Quit]
mjc__ has joined #rubygems
yo61_ has joined #rubygems
fidothe___ has joined #rubygems
Kaltiz has joined #rubygems
Fenhl has quit [Ping timeout: 268 seconds]
shtirlic has quit [Ping timeout: 268 seconds]
imslavko_ has quit [Ping timeout: 268 seconds]
freedrull has quit [Ping timeout: 268 seconds]
6JTAAFV7U has quit [Ping timeout: 268 seconds]
luislavena has quit [Ping timeout: 268 seconds]
Emily has quit [Ping timeout: 268 seconds]
yo61 has quit [Ping timeout: 268 seconds]
mjc_ has quit [Ping timeout: 268 seconds]
drbrain has quit [Ping timeout: 268 seconds]
jamooo has quit [Ping timeout: 268 seconds]
shtirlic has joined #rubygems
Kaltiz has quit [Excess Flood]
fidothe__ has quit [Write error: Connection reset by peer]
jamooo_ has joined #rubygems
drbrain_ is now known as drbrain
fidothe___ is now known as fidothe__
[reed] has joined #rubygems
Emily has joined #rubygems
davispuh has joined #rubygems
Kaltiz has joined #rubygems
yo61_ is now known as yo61
electrical_ has joined #rubygems
yakko has quit [Ping timeout: 252 seconds]
akahn_ has joined #rubygems
jamooo has joined #rubygems
Emily_ has joined #rubygems
davispuh has quit [*.net *.split]
Emily has quit [*.net *.split]
[reed] has quit [*.net *.split]
jamooo_ has quit [*.net *.split]
akahn has quit [*.net *.split]
electrical has quit [*.net *.split]
Emily has joined #rubygems
dknox has quit [*.net *.split]
Emily_ is now known as Emily
Emily has quit [Changing host]
electrical_ is now known as electrical
akahn_ is now known as akahn
dknox has joined #rubygems
jamooo_ has joined #rubygems
drbrain has quit [Ping timeout: 276 seconds]
jamooo has quit [Ping timeout: 276 seconds]
morphis has quit [Ping timeout: 276 seconds]
77CAAFWVD has quit [Ping timeout: 276 seconds]
indirect has quit [Ping timeout: 276 seconds]
morphis has joined #rubygems
jamo_ has joined #rubygems
dknox has quit [Quit: Textual IRC Client: www.textualapp.com]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #rubygems
tenderlove has quit [Ping timeout: 276 seconds]
tenderlove has joined #rubygems
seanlinsley has joined #rubygems
tenderlove has quit [Quit: Leaving...]
denym_OFF has quit [Ping timeout: 260 seconds]
denym_OFF has joined #rubygems
yakko has joined #rubygems
huoxito has quit [Remote host closed the connection]
huoxito has joined #rubygems
huoxito has quit [Remote host closed the connection]
yakko is now known as thejamespinto
indirect has joined #rubygems
drbrain has joined #rubygems
[reed] has joined #rubygems
lsegal has joined #rubygems
[reed] has joined #rubygems
[reed] has quit [Changing host]
huoxito has joined #rubygems
Fenhl_ has quit [Changing host]
Fenhl_ has joined #rubygems
imslavko__ has quit [Changing host]
imslavko__ has joined #rubygems
mjc__ has joined #rubygems
mjc__ has quit [Changing host]
yo61 has joined #rubygems
yo61 has quit [Changing host]
fidothe__ has quit [Changing host]
fidothe__ has joined #rubygems
electrical has quit [Changing host]
electrical has joined #rubygems
akahn has joined #rubygems
akahn has quit [Changing host]
huoxito has quit [Ping timeout: 276 seconds]
cstrahan has quit [Ping timeout: 240 seconds]
dwradcliffe has quit [Ping timeout: 240 seconds]
dwradcliffe_ has joined #rubygems
cstrahan_ has joined #rubygems
mjc__ has quit [Ping timeout: 272 seconds]
ckrailo has quit [Ping timeout: 260 seconds]
johnmwilliams___ has quit [Ping timeout: 260 seconds]
davidjrice____ has quit [Ping timeout: 260 seconds]
JSharp has quit [Ping timeout: 260 seconds]
avdi has quit [Ping timeout: 260 seconds]
vertis has quit [Ping timeout: 260 seconds]
tmoore has quit [Ping timeout: 260 seconds]
yo61 has quit [Ping timeout: 252 seconds]
qrush_ has quit [Ping timeout: 240 seconds]
th2389____ has quit [Ping timeout: 240 seconds]
Guest85414______ has quit [Ping timeout: 260 seconds]
Shoffner__ has quit [Ping timeout: 260 seconds]
nz_________ has quit [Ping timeout: 260 seconds]
aquaranto has quit [Ping timeout: 260 seconds]
schisamo_ has quit [Ping timeout: 260 seconds]
guilleiguaran___ has quit [Ping timeout: 260 seconds]
jesser has quit [Ping timeout: 260 seconds]
whoojemaflip has quit [Ping timeout: 260 seconds]
tiagonobre_ has quit [Ping timeout: 260 seconds]
dwradcliffe_ has quit [Ping timeout: 268 seconds]
akahn has quit [Ping timeout: 272 seconds]
fidothe__ has quit [Ping timeout: 272 seconds]
imslavko__ has quit [Ping timeout: 272 seconds]
Fenhl_ has quit [Ping timeout: 272 seconds]
cstrahan_ has quit [Ping timeout: 268 seconds]
electrical has quit [Ping timeout: 268 seconds]
robotblake has joined #rubygems
jhass is now known as jhass|off
robotblake has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ckrailo has joined #rubygems
akahn_ has joined #rubygems
Fenhl_ has joined #rubygems
guilleiguaran___ has joined #rubygems
qrush__ has joined #rubygems
Shoffner___ has joined #rubygems
imslavko__ has joined #rubygems
JSharp has joined #rubygems
yo61_ has joined #rubygems
vertis has joined #rubygems
electrical_ has joined #rubygems
tiagonobre_ has joined #rubygems
aquaranto_ has joined #rubygems
avdi has joined #rubygems
whoojemaflip_ has joined #rubygems
tmoore has joined #rubygems
johnmwilliams___ has joined #rubygems
davidjrice_____ has joined #rubygems
cstrahan_ has joined #rubygems
mjc__ has joined #rubygems
schisamo_ has joined #rubygems
nz_________ has joined #rubygems
Guest85414______ has joined #rubygems
th2389____ has joined #rubygems
dwradcliffe_ has joined #rubygems
jesser_ has joined #rubygems
fidothe___ has joined #rubygems
Fenhl_ is now known as Fenhl
JSharp has quit [Ping timeout: 252 seconds]
JSharp_ has joined #rubygems
freedrul1 has quit [Ping timeout: 252 seconds]
freedrull has joined #rubygems
thejamespinto has quit [Remote host closed the connection]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
fidothe___ has quit [Ping timeout: 272 seconds]
JSharp_ has quit [Read error: Connection reset by peer]
davidjrice_____ has quit [Read error: Connection reset by peer]
Guest85414______ has quit [Read error: Connection reset by peer]
akahn_ has quit [Write error: Connection reset by peer]
fidothe___ has joined #rubygems
akahn_ has joined #rubygems
JSharp has joined #rubygems
Guest85414______ has joined #rubygems
davidjrice_____ has joined #rubygems
huoxito has joined #rubygems
huoxito has quit [Remote host closed the connection]
indirect has quit [Ping timeout: 245 seconds]
drbrain has quit [Ping timeout: 245 seconds]
indirect has joined #rubygems
drbrain has joined #rubygems
ckrailo has quit [Ping timeout: 245 seconds]
drbrain has quit [Ping timeout: 245 seconds]
ckrailo has joined #rubygems
drbrain has joined #rubygems
huoxito has joined #rubygems
cstrahan_ has quit [Ping timeout: 245 seconds]
cstrahan_ has joined #rubygems
huoxito has quit [Ping timeout: 250 seconds]
redmenace has joined #rubygems
imslavko__ has quit [Ping timeout: 268 seconds]
schisamo_ has quit [Ping timeout: 252 seconds]
guilleiguaran___ has quit [Ping timeout: 246 seconds]
nz_________ has quit [Ping timeout: 246 seconds]
mjc__ has quit [Ping timeout: 246 seconds]
yo61_ has quit [Ping timeout: 276 seconds]
tiagonobre_ has quit [Ping timeout: 276 seconds]
imslavko__ has joined #rubygems
yo61_ has joined #rubygems
tiagonobre_ has joined #rubygems
mjc__ has joined #rubygems
guilleiguaran___ has joined #rubygems
schisamo_ has joined #rubygems
nz_________ has joined #rubygems
jhass|off is now known as jhass
freedrul1 has joined #rubygems
freedrull has quit [Ping timeout: 252 seconds]
denym_OFF has quit [Ping timeout: 272 seconds]
denym_OFF has joined #rubygems
davispuh has joined #rubygems
thumpba_ has joined #rubygems
thumpba has quit [Ping timeout: 252 seconds]
dwknoxy has joined #rubygems
niska has quit [*.net *.split]
graphex has quit [*.net *.split]
imajes has quit [*.net *.split]
vlad_starkov has quit [*.net *.split]
alindeman has quit [*.net *.split]
vlad_starkov has joined #rubygems
Shoffner___ has quit [*.net *.split]
jamo_ has quit [*.net *.split]
shtirlic has quit [*.net *.split]
jamo_ has joined #rubygems
shtirlic has joined #rubygems
graphex has joined #rubygems
Kaltiz has quit [*.net *.split]
Shoffner___ has joined #rubygems
imajes has joined #rubygems
cstrahan_ has quit [Ping timeout: 272 seconds]
cstrahan_ has joined #rubygems
elia has joined #rubygems
Esya has joined #rubygems
thumpba_ has quit [Read error: Connection timed out]
thejamespinto has joined #rubygems
thumpba has joined #rubygems
dwknoxy has quit [*.net *.split]
drbrain has quit [*.net *.split]
Guest85414______ has quit [*.net *.split]
aquaranto_ has quit [*.net *.split]
avdi has quit [*.net *.split]
vertis has quit [*.net *.split]
electrical_ has quit [*.net *.split]
morphis has quit [*.net *.split]
vertis has joined #rubygems
aquaranto_ has joined #rubygems
drbrain has joined #rubygems
electrical_ has joined #rubygems
Guest85414______ has joined #rubygems
avdi has joined #rubygems
morphis has joined #rubygems
elia has quit [Quit: Computer has gone to sleep.]
alindeman has joined #rubygems
robotblake has joined #rubygems
mkristian has joined #rubygems
tbuehlmann has joined #rubygems
havenwood has joined #rubygems
niska has joined #rubygems
thejamespinto has quit [Remote host closed the connection]
dbussink has quit [Quit: bye]
huoxito has joined #rubygems
mkristian has quit [Quit: bye]
huoxito has quit [Ping timeout: 240 seconds]
redmenace has quit [Quit: leaving]
redmenace has joined #rubygems
dbussink has joined #rubygems
dbussink has quit [Ping timeout: 260 seconds]
thejamespinto has joined #rubygems
dbussink has joined #rubygems
thejamespinto has quit [Read error: Connection reset by peer]
thejamespinto has joined #rubygems
thejamespinto has quit [Read error: Connection reset by peer]
thejamespinto has joined #rubygems
huoxito has joined #rubygems
huoxito has quit [Remote host closed the connection]
huoxito has joined #rubygems
tbuehlmann has quit [Remote host closed the connection]
huoxito has quit [Remote host closed the connection]
nz_________ is now known as nz
huoxito has joined #rubygems
huoxito has quit [Remote host closed the connection]
huoxito has joined #rubygems
seanlinsley_ has joined #rubygems
huoxito_ has joined #rubygems
huoxito has quit [*.net *.split]
alindeman has quit [*.net *.split]
morphis has quit [*.net *.split]
seanlinsley has quit [*.net *.split]
seanlinsley_ is now known as seanlinsley
cstrahan_ is now known as cstrahan
_morphis has joined #rubygems
freedrull has joined #rubygems
jamooo has joined #rubygems
jamo_ has quit [Write error: Broken pipe]
freedrul1 has quit [Write error: Broken pipe]
jamooo_ has quit [Write error: Broken pipe]
lsegal has joined #rubygems
huoxito has joined #rubygems
drbrain_ has joined #rubygems
davispuhh has joined #rubygems
jamo_ has joined #rubygems
huoxito_ has quit [*.net *.split]
drbrain has quit [*.net *.split]
davispuh has quit [*.net *.split]
[reed] has quit [*.net *.split]
havenwood has quit [*.net *.split]
adam12 is now known as adam
drbrain_ is now known as drbrain
adam is now known as Guest66081
[reed] has joined #rubygems
huoxito has quit [Remote host closed the connection]
thumpba_ has joined #rubygems
thumpba has quit [Ping timeout: 246 seconds]
seanlinsley has quit [Quit: seanlinsley]
redmenace has quit [Ping timeout: 246 seconds]
tmoore has quit [Ping timeout: 246 seconds]
tmoore has joined #rubygems
redmenace has joined #rubygems
yo61_ is now known as yo61
tcopeland has joined #rubygems
huoxito has joined #rubygems
huoxito has quit [Ping timeout: 260 seconds]