-
-
Save exadeci/3e9a1b7864a882b0dc51bbf08cd4b727 to your computer and use it in GitHub Desktop.
ApplicationRecord model template for RubyMine
This file contains 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
#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