Skip to content
This repository was archived by the owner on Dec 28, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ gem 'rails', '~> 7.0.7'

gem 'bootsnap', require: false

gem 'activeadmin', '~> 2.13.1'
gem 'activeadmin', '~> 3.0.0'
gem 'autoprefixer-rails', '~> 10.4.2.0'
gem 'cancancan', '~> 3.3.0'
gem 'carrierwave', '~> 2.2.5'
Expand Down Expand Up @@ -47,7 +47,7 @@ gem 'business_time'
gem 'github_api', '~> 0.18.2'
gem 'httparty'
gem 'money-rails', '~> 1.12'
gem 'ransack', '~> 2.3'
gem 'ransack', '~> 4.0'

gem 'sidekiq', "~> 6.5.12"

Expand Down
32 changes: 16 additions & 16 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ GEM
case_transform (>= 0.2)
jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
active_skin (0.0.13)
activeadmin (2.13.1)
activeadmin (3.0.0)
arbre (~> 1.2, >= 1.2.1)
formtastic (>= 3.1, < 5.0)
formtastic_i18n (~> 0.4)
inherited_resources (~> 1.7)
jquery-rails (~> 4.2)
kaminari (~> 1.0, >= 1.2.1)
railties (>= 6.1, < 7.1)
ransack (>= 2.1.1, < 4)
ransack (>= 4.0, < 5)
activejob (7.0.7.2)
activesupport (= 7.0.7.2)
globalid (>= 0.3.6)
Expand All @@ -123,9 +123,9 @@ GEM
tzinfo (~> 2.0)
addressable (2.8.5)
public_suffix (>= 2.0.2, < 6.0)
arbre (1.6.0)
activesupport (>= 3.0.0, < 7.1)
ruby2_keywords (>= 0.0.2, < 1.0)
arbre (1.7.0)
activesupport (>= 3.0.0)
ruby2_keywords (>= 0.0.2)
ast (2.4.2)
autoprefixer-rails (10.4.2.0)
execjs (~> 2)
Expand Down Expand Up @@ -275,7 +275,7 @@ GEM
guard (~> 2.8)
guard-compat (~> 1.0)
multi_json (~> 1.8)
has_scope (0.8.1)
has_scope (0.8.2)
actionpack (>= 5.2)
activesupport (>= 5.2)
hashdiff (1.0.1)
Expand All @@ -298,11 +298,11 @@ GEM
image_processing (1.12.2)
mini_magick (>= 4.9.5, < 5)
ruby-vips (>= 2.0.17, < 3)
inherited_resources (1.13.1)
actionpack (>= 5.2, < 7.1)
has_scope (~> 0.6)
railties (>= 5.2, < 7.1)
responders (>= 2, < 4)
inherited_resources (1.14.0)
actionpack (>= 6.0)
has_scope (>= 0.6)
railties (>= 6.0)
responders (>= 2)
inline_svg (1.9.0)
activesupport (>= 3.0)
nokogiri (>= 1.6)
Expand Down Expand Up @@ -473,9 +473,9 @@ GEM
zeitwerk (~> 2.5)
rainbow (3.1.1)
rake (13.0.6)
ransack (2.6.0)
activerecord (>= 6.0.4)
activesupport (>= 6.0.4)
ransack (4.1.1)
activerecord (>= 6.1.5)
activesupport (>= 6.1.5)
i18n
rate_throttle_client (0.1.2)
rb-fsevent (0.11.2)
Expand Down Expand Up @@ -646,7 +646,7 @@ DEPENDENCIES
active_admin_theme
active_model_serializers (~> 0.10.13)
active_skin
activeadmin (~> 2.13.1)
activeadmin (~> 3.0.0)
autoprefixer-rails (~> 10.4.2.0)
barnes
better_errors
Expand Down Expand Up @@ -703,7 +703,7 @@ DEPENDENCIES
rails-ajax_redirect
rails-controller-testing
rails-i18n
ransack (~> 2.3)
ransack (~> 4.0)
rollbar
roo (~> 2.9.0)
rqrcode
Expand Down
11 changes: 11 additions & 0 deletions app/models/punch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ def self.total
all.reduce(0) { |a, e| a + e.delta }
end

def self.ransackable_attributes(auth_object = nil)
%w[
attachment comment created_at extra_hour from
id id_value project_id to updated_at user_id
]
end

def self.ransackable_associations(auth_object = nil)
%w[project user]
end

private

def mount_time(time_string)
Expand Down