Skip to content

Instantly share code, notes, and snippets.

@exadeci
Last active March 20, 2017 02:35
Show Gist options
  • Save exadeci/3e9a1b7864a882b0dc51bbf08cd4b727 to your computer and use it in GitHub Desktop.
Save exadeci/3e9a1b7864a882b0dc51bbf08cd4b727 to your computer and use it in GitHub Desktop.
ApplicationRecord model template for RubyMine
#set($ctrlName = $NAME.replaceAll(".rb", ""))
#set($ctrlNewName = "")
#foreach($str in $ctrlName.split("_"))
#set($str = $str.substring(0,1).toUpperCase()+$str.substring(1))
#set($ctrlNewName = $ctrlNewName + $str)
#end
class ${ctrlNewName} < ApplicationRecord
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment