This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def json | |
if self.persisted? | |
original_bylines_json = self.class.find(self.id).bylines.as_json | |
else | |
original_bylines_json = [].as_json | |
end | |
end | |
# --------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Downloads and installs Oracle Java 6 from here: | |
# http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html#jdk-6u45-oth-JPR | |
wget \ | |
--no-cookies \ | |
--no-check-certificate \ | |
--header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \ | |
http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin | |
chmod +x jdk-6u45-linux-x64.bin | |
./jdk-6u45-linux-x64.bin | |
sudo mv -T jdk1.6.0_45 /usr/lib/jvm/java-6-oracle-amd64 |
OlderNewer