Skip to content

Commit 999c767

Browse files
committed
ads public/assets, fixes mimetpyes issue with fonts, makes use of asset pipeline, backbone.history.start is run each time
1 parent f22e0d7 commit 999c767

File tree

140 files changed

+2875
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+2875
-2
lines changed

app/assets/javascripts/lessonoverflow.js.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ window.Lessonoverflow =
55
Routers: {}
66
init: ->
77
new Lessonoverflow.Routers.Resources()
8+
Backbone.history.start()
89

910
$(document).ready ->
1011
Lessonoverflow.init()

config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Application < Rails::Application
6060
config.active_record.whitelist_attributes = true
6161

6262
# Enable the asset pipeline
63-
# config.assets.enabled = true
63+
config.assets.enabled = true
6464

6565
# Version of your assets, change this if you want to expire all your assets
6666
config.assets.version = '1.0'

config/initializers/mime_types.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
# Add new mime types for use in respond_to blocks:
44
# Mime::Type.register "text/richtext", :rtf
55
# Mime::Type.register_alias "text/html", :iphone
6-
Mime::Type.register "font/woff", :woff
6+
Mime::Type.register "font/woff", :woff
7+
Rack::Mime::MIME_TYPES['.woff'] = 'application/x-font-woff'
716 Bytes
716 Bytes

public/assets/active_admin/application-779f888844e34dddc8281502d7c62620.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

public/assets/active_admin/application.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
1.81 KB
Binary file not shown.
1.66 KB

0 commit comments

Comments
 (0)