Remove EVEN MORE non-API parts of the app
parent
b65c47ddaf
commit
b5bf411f15
|
@ -1,4 +1,4 @@
|
|||
class ApplicationController < ActionController::Base
|
||||
# For APIs, you may want to use :null_session instead.
|
||||
protect_from_forgery with: :exception
|
||||
protect_from_forgery with: :null_session
|
||||
end
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
module ApplicationHelper
|
||||
end
|
|
@ -1,17 +0,0 @@
|
|||
!!!
|
||||
%html{lang: "en"}
|
||||
%head
|
||||
%meta{charset: "utf-8"}/
|
||||
%meta{content: "width=device-width, initial-scale=1", name: "viewport"}/
|
||||
= favicon_link_tag 'favicon.png'
|
||||
%title= content_for?(:title) ? yield(:title) : "FarmBot"
|
||||
= stylesheet_link_tag "//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css"
|
||||
= stylesheet_link_tag "//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"
|
||||
= stylesheet_link_tag "application"
|
||||
= csrf_meta_tags
|
||||
= javascript_include_tag "//code.jquery.com/jquery-2.1.4.min.js"
|
||||
= javascript_include_tag "//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"
|
||||
= javascript_include_tag "application"
|
||||
%body{'ng-app' => 'FarmBot'}
|
||||
.content
|
||||
= yield
|
|
@ -2,12 +2,6 @@ FarmBot::Application.configure do
|
|||
config.action_controller.perform_caching = true
|
||||
config.action_mailer.default_url_options = { host: 'my.farmbot.io' }
|
||||
config.active_support.deprecation = :notify
|
||||
config.assets.debug = true
|
||||
config.assets.compile = true
|
||||
config.assets.digest = true
|
||||
config.assets.js_compressor = Uglifier.new(mangle: false)
|
||||
config.assets.precompile += ['farmbot.js']
|
||||
config.assets.version = '1.1'
|
||||
config.cache_classes = true
|
||||
config.consider_all_requests_local = false
|
||||
config.eager_load = true
|
||||
|
|
Loading…
Reference in New Issue