small file fixes

This commit is contained in:
Brenda Wallace
2020-01-06 22:04:47 +13:00
committed by Brenda Wallace
parent fb71a46de7
commit 0c7ca50880
12 changed files with 23 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
guard :rspec,
cmd: 'bundle exec rspec --format documentation',
failed_mode: :keep do

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env rake
# frozen_string_literal: true
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

View File

@@ -4,7 +4,7 @@ require 'will_paginate/array'
class CropsController < ApplicationController
before_action :authenticate_member!, except: %i(index hierarchy search show)
load_and_authorize_resource
load_and_authorize_resource id_param: :slug
skip_authorize_resource only: %i(hierarchy search)
respond_to :html, :json, :rss, :csv, :svg
responders :flash

View File

@@ -1,3 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
load Gem.bin_path('bundler', 'bundle')

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
APP_PATH = File.expand_path('../config/application', __dir__)
require_relative '../config/boot'
require 'rails/commands'

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
require_relative '../config/boot'
require 'rake'
Rake.application.run

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'fileutils'
include FileUtils

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'fileutils'
include FileUtils

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
APP_ROOT = File.expand_path('..', __dir__)
Dir.chdir(APP_ROOT) do
exec "yarnpkg", *ARGV

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)

View File

@@ -1,5 +1,7 @@
# frozen_string_literal: true
class CropPhotoCounterCache < ActiveRecord::Migration[5.2]
def change
change_table :crops do |t|

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
# This command will automatically be run when you run "rails"
# with Rails 3 gems installed from the root of your application.