rails 5.2

This commit is contained in:
Dan Elbert 2018-03-29 02:15:47 -05:00
parent 1c4fbe15de
commit 56d5965dd2
6 changed files with 62 additions and 33 deletions

View File

@ -1,3 +1,20 @@
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex);
export default {}; export default new Vuex.Store({
strict: process.env.NODE_ENV !== 'production',
state: {
},
getters: {
},
mutations: {
},
actions: {
}
});

View File

@ -1,6 +1,17 @@
require_relative 'boot' require_relative 'boot'
require 'rails/all' require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
# require "active_job/railtie"
require "active_record/railtie"
# require "active_storage/engine"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_view/railtie"
# require "action_cable/engine"
# require "sprockets/railtie"
require "rails/test_unit/railtie"
# Require the gems listed in Gemfile, including any gems # Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production. # you've limited to :test, :development, or :production.
@ -11,6 +22,7 @@ module Parsley
# Settings in config/environments/* take precedence over those specified here. # Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers # Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded. # -- all .rb files in that directory are automatically loaded.
config.load_defaults 5.2
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.

View File

@ -39,13 +39,13 @@ Rails.application.configure do
# Raise an error on page load if there are pending migrations. # Raise an error on page load if there are pending migrations.
config.active_record.migration_error = :page_load config.active_record.migration_error = :page_load
# Debug mode disables concatenation and preprocessing of assets. # # Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large # # This option may cause significant delays in view rendering with a large
# number of complex assets. # # number of complex assets.
config.assets.debug = true # config.assets.debug = true
#
# Suppress logger output for asset requests. # # Suppress logger output for asset requests.
config.assets.quiet = true # config.assets.quiet = true
# Raises error for missing translations # Raises error for missing translations
# config.action_view.raise_on_missing_translations = true # config.action_view.raise_on_missing_translations = true

View File

@ -37,13 +37,13 @@ Rails.application.configure do
# Raise an error on page load if there are pending migrations. # Raise an error on page load if there are pending migrations.
config.active_record.migration_error = :page_load config.active_record.migration_error = :page_load
# Debug mode disables concatenation and preprocessing of assets. # # Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large # # This option may cause significant delays in view rendering with a large
# number of complex assets. # # number of complex assets.
config.assets.debug = true # config.assets.debug = true
#
# Suppress logger output for asset requests. # # Suppress logger output for asset requests.
config.assets.quiet = true # config.assets.quiet = true
# Raises error for missing translations # Raises error for missing translations
# config.action_view.raise_on_missing_translations = true # config.action_view.raise_on_missing_translations = true

View File

@ -20,12 +20,12 @@ Rails.application.configure do
# Apache or NGINX already handles this. # Apache or NGINX already handles this.
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
# Compress JavaScripts and CSS. # # Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier # config.assets.js_compressor = :uglifier
# config.assets.css_compressor = :sass # # config.assets.css_compressor = :sass
#
# Do not fallback to assets pipeline if a precompiled asset is missed. # # Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = false # config.assets.compile = false
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb

View File

@ -1,13 +1,13 @@
# Be sure to restart your server when you modify this file. # Be sure to restart your server when you modify this file.
# Version of your assets, change this if you want to expire all your assets. # # Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.0' # Rails.application.config.assets.version = '1.0'
#
# Add additional assets to the asset load path # # Add additional assets to the asset load path
# Rails.application.config.assets.paths << Emoji.images_path # # Rails.application.config.assets.paths << Emoji.images_path
#
# Precompile additional assets. # # Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. # # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
# Rails.application.config.assets.precompile += %w( search.js ) # # Rails.application.config.assets.precompile += %w( search.js )
#
Rails.application.config.assets.precompile << Proc.new { |filename, path| %w(.eot .svg .tff .woff .woff2).include?(File.extname(filename)) } # Rails.application.config.assets.precompile << Proc.new { |filename, path| %w(.eot .svg .tff .woff .woff2).include?(File.extname(filename)) }