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
class Foo | |
protected | |
def y | |
'world' | |
end | |
end | |
class Bar < Foo | |
def yy | |
y |
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
class Provider < ActiveRecord::Base | |
include ImportablesMixin | |
has_many :units, :dependent => :destroy | |
has_many :communities, :dependent => :destroy | |
has_many :provider_groups | |
has_many :active_provider_groups, class_name: 'ProviderGroup', conditions: {active: true} | |
has_attached_file :image_brand, |
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
This is gist was made from emacs using gist-mode. | |
But how do you get gist mode? Well you can either find it here: | |
https://github.com/defunkt/gist.el, or you can get it from marmelade | |
using M-x package-list-packages. | |
Once you have it it's pretty easy to use. The easiest way to figure it | |
out is to do a "M-x gist-" and let the autocomplete work it's magic! | |
The first time you use a command you'll have to type in your github | |
credentials. |
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
This is gist was made from emacs using gist-mode. | |
But how do you get gist mode? Well you can either find it here: | |
https://github.com/defunkt/gist.el, or you can get it from marmelade | |
using M-x package-list-packages. | |
Once you have it it's pretty easy to use. The easiest way to figure it | |
out is to do a "M-x gist-" and let the autocomplete work it's magic! | |
The first time you use a command you'll have to type in your github | |
credentials. |
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
-- This file was constructed from snippets from these websites | |
-- https://github.com/kylpo/dot-files/blob/master/psqlrc | |
-- http://www.if-not-true-then-false.com/2009/postgresql-psql-psqlrc-tips-and-tricks/ | |
-- | |
-- See http://www.postgresql.org/docs/8.3/static/app-psql.html for the list of other useful variables | |
-- extended display mode | |
-- \x | |
-- Show nulls explicitly as NULL instead of blank |