Skip to content

Commit

Permalink
Use packaged assets
Browse files Browse the repository at this point in the history
  • Loading branch information
sj26 committed Mar 17, 2014
1 parent 0398d2d commit 70be04c
Show file tree
Hide file tree
Showing 11 changed files with 3,093 additions and 64 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ task "assets" do

require "mail_catcher/web/assets"
sprockets = MailCatcher::Web::Assets
sprockets.each_logical_path(/\.(js|css|xsl|png)\Z/) do |logical_path|
sprockets.each_logical_path(/(\Aapplication\.(js|css)|\.(xsl|png)\Z)/) do |logical_path|
if asset = sprockets.find_asset(logical_path)
target = File.join(compiled_path, logical_path)
asset.write_to target
Expand Down
7 changes: 7 additions & 0 deletions assets/javascripts/application.js.coffee
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#= require modernizr
#= require jquery
#= require date
#= require flexie
#= require keymaster
#= require xslt

# Add a new jQuery selector expression which does a case-insensitive :contains
jQuery.expr[':'].icontains = (a, i, m) ->
(a.textContent ? a.innerText ? "").toUpperCase().indexOf(m[3].toUpperCase()) >= 0
Expand Down
Loading

0 comments on commit 70be04c

Please sign in to comment.