1
0
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:
Daniel Barber 2015-10-14 11:58:23 +01:00
parent 80b46f1e65
commit c146a90e03
4 changed files with 14 additions and 3 deletions

View File

@ -3,3 +3,14 @@ Metrics/LineLength:
Documentation:
Enabled: false
AllCops:
Include:
- '**/Rakefile'
- '**/config.ru'
Exclude:
- 'db/**/*'
- 'config/**/*'
- 'script/**/*'
- 'bin/**/*'
- !ruby/regexp /old_and_unused\.rb$/

View File

@ -5,7 +5,7 @@ class Photo < ActiveRecord::Base
validates :image, presence: true
@@per_page = 11
self.per_page = 11
scope :enabled, -> { where(enabled: true) }

View File

@ -1,4 +1,4 @@
# 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

View File

@ -1,6 +1,6 @@
module Ajax
def wait_for_ajax
Timeout.timeout(Capybara.default_wait_time) do
Timeout.timeout(Capybara.default_max_wait_time) do
loop do
active = page.evaluate_script('jQuery.active')
break if active == 0