Remove EVEN MORE non-API parts of the app

pull/290/head
Rick Carlino 2016-11-09 16:54:05 -06:00
parent b65c47ddaf
commit b5bf411f15
4 changed files with 1 additions and 26 deletions

View File

@ -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

View File

@ -1,2 +0,0 @@
module ApplicationHelper
end

View File

@ -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

View File

@ -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