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
| 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 |
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
| 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 |
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
| #!/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 |
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
| # 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 |
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
| 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 |
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
| 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 |
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
| 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 | |
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
| 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 |
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
| 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 |