Run through rvm if rvm is present

For Mac users with default RailsInstaller setup.
Merge branch 'master' into C1_mnzaki_commit_hooks
Update pre-commit Gem.

One more evil update.
Merge pull request #119 from DevYah/C1_mnzaki_commit_hooks

Fix pre-commit checks for Mac OS users.
Fixed the relations in master, #120

Some relationships overwritted others, so they had to be redefined.
#120, edited code style
Merge pull request #122 from DevYah/DB_#120_repair_master_relations

Fix conflicting relation names in Idea, User, and Comment.
Issue #79, Pull latest master and Merge
Merge branch 'master' into C1_Sameh_#79_account_settings

Conflicts:
	Idearator/app/models/idea.rb