mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Fix more Rubocop shit
This commit is contained in:
parent
80b46f1e65
commit
c146a90e03
11
.rubocop.yml
11
.rubocop.yml
@ -3,3 +3,14 @@ Metrics/LineLength:
|
|||||||
|
|
||||||
Documentation:
|
Documentation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
AllCops:
|
||||||
|
Include:
|
||||||
|
- '**/Rakefile'
|
||||||
|
- '**/config.ru'
|
||||||
|
Exclude:
|
||||||
|
- 'db/**/*'
|
||||||
|
- 'config/**/*'
|
||||||
|
- 'script/**/*'
|
||||||
|
- 'bin/**/*'
|
||||||
|
- !ruby/regexp /old_and_unused\.rb$/
|
||||||
|
|||||||
@ -5,7 +5,7 @@ class Photo < ActiveRecord::Base
|
|||||||
|
|
||||||
validates :image, presence: true
|
validates :image, presence: true
|
||||||
|
|
||||||
@@per_page = 11
|
self.per_page = 11
|
||||||
|
|
||||||
scope :enabled, -> { where(enabled: true) }
|
scope :enabled, -> { where(enabled: true) }
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# This file is used by Rack-based servers to start the application.
|
# This file is used by Rack-based servers to start the application.
|
||||||
|
|
||||||
require ::File.expand_path('../config/environment', __FILE__)
|
require ::File.expand_path('../config/environment', __FILE__)
|
||||||
run DanBarberPhoto::Application
|
run DanBarberPhoto::Application
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
module Ajax
|
module Ajax
|
||||||
def wait_for_ajax
|
def wait_for_ajax
|
||||||
Timeout.timeout(Capybara.default_wait_time) do
|
Timeout.timeout(Capybara.default_max_wait_time) do
|
||||||
loop do
|
loop do
|
||||||
active = page.evaluate_script('jQuery.active')
|
active = page.evaluate_script('jQuery.active')
|
||||||
break if active == 0
|
break if active == 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user