mbj has quit [Read error: Connection reset by peer]
zekefast has joined #rom-rb
skade has joined #rom-rb
cored has joined #rom-rb
zekefast has quit [Quit: Leaving.]
mbj has joined #rom-rb
cored has quit [Quit: leaving]
zekefast has joined #rom-rb
dkubb has quit [Read error: Connection reset by peer]
dkubb has joined #rom-rb
postmodern has joined #rom-rb
snusnu has joined #rom-rb
snusnu has quit [Quit: Leaving.]
CraigBuchek has quit [Quit: CraigBuchek]
breakingthings has joined #rom-rb
mbj has quit [Ping timeout: 246 seconds]
snusnu has joined #rom-rb
postmodern has quit [Quit: Leaving]
cored has joined #rom-rb
CraigBuchek has joined #rom-rb
mbj has joined #rom-rb
<snusnu>
yo mbj
<snusnu>
i was wondering, do you actually use a #to_hash helper for anima in your apps? i found myself thinking about sticking something like this in Utils::Anima .. def to_hash; self.class.attributes_hash(self); end
<mbj>
snusnu: I tried to avoid "instance level method pollition", but as a helper +1
<mbj>
snusnu: There is also Anima::Update for #update, some_instance.update(:some => :attribute) # => new_instance_with_updated_attribute
<snusnu>
mbj: yeah, i'd mostly include it into objects that need their hash accessible, like for serialization
<snusnu>
mbj: yeah i know that
<mbj>
snusnu: Via ducktrap its AFAIK okay to go the singleton.attributes_hash(instance) thing!
<mbj>
snusnu: Because you can "serialize" anything that has the correct public interface.
<snusnu>
mbj: yeah that's fine
<snusnu>
mbj: in my case, i send back instances of arbitrary anima objects tho, as json (for angular to feed on)
<snusnu>
mbj: and it seems fair enough to expose their serializable state via something like #to_hash
<snusnu>
mbj: maybe some of them will use inverse ducktraps eventually, but for now, i'm fine without (that will probably change soon tho)
<mbj>
snusnu: Feel free to push that Anima::Serializable? into repo
<snusnu>
mbj: i might do that at some point yeah, i wanna use it for a bit longer tho
mbj has quit [Read error: Connection reset by peer]
mbj has joined #rom-rb
bf4 has quit [Ping timeout: 240 seconds]
mbj has quit [Ping timeout: 246 seconds]
bf4 has joined #rom-rb
<dkubb>
good morning
CraigBuchek has quit [Quit: CraigBuchek]
cored has quit [Ping timeout: 240 seconds]
cinch_ has joined #rom-rb
cinch_ has quit [Remote host closed the connection]
cinch_ has joined #rom-rb
cinch_ has quit [Remote host closed the connection]
snusnu has quit [Quit: Leaving.]
mbj has joined #rom-rb
mbj has quit [Read error: Connection reset by peer]
snusnu has joined #rom-rb
cinch_ has joined #rom-rb
cinch_ has quit [Remote host closed the connection]
cinch_ has joined #rom-rb
cinch_ has quit [Remote host closed the connection]
CraigBuchek has joined #rom-rb
mbj has joined #rom-rb
mbj has quit [Read error: Connection reset by peer]
irclogger__ has joined #rom-rb
irclogger__ has quit [Remote host closed the connection]
zekefast has quit [Quit: Leaving.]
irclogger__ has joined #rom-rb
irclogger__ has quit [Remote host closed the connection]
irclogger__ has joined #rom-rb
irclogger__ has quit [Remote host closed the connection]
irclogger__ has joined #rom-rb
irclogger__ has quit [Remote host closed the connection]
irclogger__ has joined #rom-rb
irclogger____ has joined #rom-rb
irclogger____ has quit [Remote host closed the connection]
irclogger____ has joined #rom-rb
irclogger____ has quit [Remote host closed the connection]
irclogger____ has joined #rom-rb
irclogger____ has quit [Remote host closed the connection]