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
NS.Loader = | |
exec: (controller, action="init") -> | |
ns = NS | |
controller = _.capitalize(_.singularize(controller)) | |
ns[controller][action]() if controller? and ns[controller]? and ns[controller][action]? | |
return | |
init: () -> | |
## load underscore string | |
_.mixin(_.string.exports()) |
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
# This plugin does two things: | |
# 1. make popover with no title, https://github.com/twitter/bootstrap/issues/1892 | |
# 2. click elsewhere to close, http://jsfiddle.net/asanger/AFffL/266/ | |
( ($) -> | |
$.fn.content_popover = (options) -> | |
$.each @, () -> | |
# Default set to false | |
isVisible = false | |
clickedAway = false |
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
require 'mongoid' | |
class A | |
end | |
class B | |
end | |
class Book | |
include Mongoid::Document | |
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
Ruby Gems | |
nokogiri | |
typhoeus | |
dalli | |
rails | |
sinatra | |
mongo_mapper | |
rabl | |
rake |