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
table_for users, {:sortable => true, :class => 'index_table'} do | |
... | |
end |
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
content do | |
order = case(params[:order]) | |
when 'user_email_desc' | |
'email DESC' | |
when 'user_email_asc' | |
'email ASC' | |
else | |
nil | |
end | |
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
git add <subdir_name> | |
git add -u | |
git commit -m "adding <subdir_name>" |
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
git remote add <remote_name> </path/to/existing/repo> | |
git fetch <remote_name> | |
git merge <remote_name>/master |
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
mkdir monolithic_repo | |
cd monolithic_repo | |
git init . |
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
$("body").bind("ajaxSend", function(elm, xhr, s){ | |
if (s.type == "POST" || type == "DELETE" || type == "PUT") { | |
xhr.setRequestHeader('X-CSRF-Token', Common.CSRF_TOKEN); | |
} | |
}); |
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
$("body").bind("ajaxSend", function(elm, xhr, s){ | |
if (s.type == "POST") { | |
xhr.setRequestHeader('X-CSRF-Token', Common.CSRF_TOKEN); | |
} | |
}); |
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
@Transactional | |
@Service("dc") | |
class DependencyClass implements IDependencyClass { | |
} | |
@Transactional | |
@Service("dca") | |
class DependencyClassAlternate implements IDependencyClass { | |
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
@Transactional | |
@Service | |
class DependencyClass implements IDependencyClass { | |
} | |
@Transactional | |
@Service | |
class DependencyClassAlternate implements IDependencyClass { | |
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
@Transactional | |
@Service | |
class DependencyClass implements IDependencyClass { | |
} | |
class MainClass { | |
@Autowired | |
private IDependencyClass insert; | |
} |