Skip to content

Instantly share code, notes, and snippets.

View LBRapid's full-sized avatar
🏠
Working from home

John Dyer LBRapid

🏠
Working from home
View GitHub Profile
returning(String.new) do |html|
@resource[:class].typus_defaults_for(:relationships).each do |relationship|
association = @resource[:class].reflect_on_association(relationship.to_sym)
next if @current_user.cannot?('read', association.class_name.constantize)
macro = association.through_reflection ? :has_and_belongs_to_many : association.macro
case macro
when :has_and_belongs_to_many
export PATH=$PATH:/opt/local/bin
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
export MANPATH=$MANPATH:/opt/local/share/man
export INFOPATH=$INFOPATH:/opt/local/share/info
export PATH=$PATH:.
export PATH=/usr/bin/:$PATH
export PATH=~/bin/:$PATH
#!/usr/local/bin/ruby
#
# This script installs to /usr/local only. To install elsewhere you can just
# untar http://github.com/mxcl/homebrew/tarball/master anywhere you like.
#
#
# 30th March 2010:
# Added a check to make sure user is in the staff group. This was a problem
# for me, and I think it was due to me migrating my account over several
# versions of OS X. I cannot verify that for sure, and it was tested on
# One module is included, only rakismet_attrs needs to be defined on
# a per-model basis
module AkismetHelper
def is_spam?
self.is_spam
end
private
We couldn’t find that file to show.
Hi user33!
There are new notifications for you
----------------------------------------------------------------------------
You were added as a speaker to 2 talks
----------------------------------------------------------------------------
TDD - http://speakerrate.test/talks/970
TDD - http://speakerrate.test/talks/971
Hi user33!
There are new notifications for you
----------------------------------------------------------------------------
You were added as a speaker to 2 talks
----------------------------------------------------------------------------
TDD - http://speakerrate.test/talks/982
TDD - http://speakerrate.test/talks/983
Hi user33!
There are new notifications for you:
You were added as a speaker to 2 talks
"TDD" - http://speakerrate.test/talks/1030
"TDD" - http://speakerrate.test/talks/1031
Hi user33!
There are new notifications for you:
o You were added as a speaker to 2 talks
"TDD" - http://speakerrate.test/talks/1114-tdd
"TDD" - http://speakerrate.test/talks/1115-tdd
o New ratings on your talks
Hi user33!
There are new notifications for you:
o You were added as a speaker to 2 talks
"TDD" - http://speakerrate.test/talks/1126-tdd
"TDD" - http://speakerrate.test/talks/1127-tdd
o New ratings on your talks