Skip to content

Instantly share code, notes, and snippets.

@bernerdschaefer
Created October 20, 2010 16:12
Show Gist options
  • Save bernerdschaefer/636729 to your computer and use it in GitHub Desktop.
Save bernerdschaefer/636729 to your computer and use it in GitHub Desktop.
--regex-ruby=/(^|:)([A-Z_]+) *=/\2/c,class,constant/
--regex-ruby=/(has_many|belongs_to|has_one|has_and_belongs_to_many) :([^ ]+)/\2/f,function,association/
--regex-ruby=/(named_)?scope\(? *:([^ ,]+)/\2/f,function,named_scope/
--regex-ruby=/[ \t]*event :([^ ]+)/\1/f,function,aasm_event/
--regex-ruby=/[ \t]*event :([^ ]+)/\1!/f,function,aasm_event/
--regex-ruby=/[ \t]*event :([^ ]+)/\1?/f,function,aasm_event/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment