Skip to content

Commit

Permalink
Only contact hello.myfonts.net in production
Browse files Browse the repository at this point in the history
This incorporates the goofy sass_rails_patch gem that allows
css.scss.erb to work in Rails 3. The sass-rails people have
that technology working on their Rails 4 branch, but not in
3.x. Shrug.
  • Loading branch information
tjgrathwell committed Jul 9, 2013
1 parent ea5e643 commit e74a1a3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ group :assets do
gem 'handlebars_assets'
gem 'jquery-datatables-rails'
gem 'sass-rails'
# sass_rails_patch allows 'css.scss.erb' to work.
# delete this when upgrading to rails 4 (sass-rails 4.0.0 incorporates a similar fix)
gem 'sass_rails_patch'
gem 'coffee-rails'
gem 'uglifier'
gem 'bootstrap-sass-rails'
Expand Down
5 changes: 4 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,13 @@ GEM
rubyzip (0.9.9)
sanitize (2.0.3)
nokogiri (>= 1.4.4, < 1.6)
sass (3.2.7)
sass (3.2.9)
sass-rails (3.2.6)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
sass_rails_patch (0.0.2)
sass-rails
select2-rails (3.3.0)
sass-rails (~> 3.2)
thor (~> 0.14)
Expand Down Expand Up @@ -313,6 +315,7 @@ DEPENDENCIES
rspec-rails
sanitize
sass-rails
sass_rails_patch
select2-rails
sentry-raven
sextant
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* sweet font analytics */
@import url("//hello.myfonts.net/count/262127");
<% if Rails.env.production? %>
/* font analytics for licensing */
@import url("//hello.myfonts.net/count/262127");
<% end %>

@font-face {
font-family: 'Freehand521BT-RegularC';
Expand Down

0 comments on commit e74a1a3

Please sign in to comment.