After modifying an object and after saving to the database, or within after_save
:
Rails <= 5 | Rails >= 5.1 |
---|---|
attribute_changed? | saved_change_to_attribute? |
changed? | saved_changes? |
changes | saved_changes |
attribute_was | attribute_before_last_save |
function makeRequest(opts) { | |
return new Promise(function(resolve, reject) { | |
var xhr = new XMLHttpRequest(); | |
xhr.open(opts.method, opts.url); | |
xhr.withCredentials = true; | |
xhr.onload = function() { | |
if (this.status >= 200 && this.status < 300) { | |
resolve(xhr.response); | |
} else { | |
reject({ |
sudo apt-get install -y \ | |
git \ | |
g++ \ | |
libgtk-3-dev \ | |
gtk-doc-tools \ | |
gnutls-bin \ | |
valac \ | |
intltool \ | |
libtool \ | |
libpcre2-dev \ |
#!/bin/sh | |
xmodmap ~/.Xmodmap |
!Turn Caps Lock into another Control key | |
keycode 66 = Control_L | |
clear Lock | |
add Control = Control_L |
style.name: Aretes | |
style.author: Mauro Locatelli | |
style.date: August 3, 2015 | |
style.credits: | |
style.comment: | |
toolbar: flat | |
toolbar.pixmap: toolbar.xpm | |
toolbar.textColor: #c0c0c0 | |
toolbar.justify: center |
#avoid flicker | |
double_buffer yes | |
#own window to run simultanious 2 or more conkys | |
own_window yes | |
own_window_transparent no | |
own_window_type panel | |
own_window_hints undecorate,sticky,skip_taskbar,skip_pager | |
#borders |
Section "ServerLayout" | |
Identifier "aticonfig Layout" | |
Screen 0 "aticonfig-Screen[0]-0" 0 0 | |
Screen "aticonfig-Screen[0]-1" RightOf "aticonfig-Screen[0]-0" | |
EndSection | |
Section "Module" | |
EndSection | |
Section "ServerFlags" |