Skip to content
This repository was archived by the owner on Dec 23, 2025. It is now read-only.
Open
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
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ group :development, :test do
# Adds support for Capybara system testing and selenium driver
gem 'letter_opener'
# gem 'dotenv-rails'
gem 'rails-erd'
end

group :test do
Expand Down
20 changes: 18 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ GEM
mini_mime (>= 0.1.3)
ssrf_filter (~> 1.0)
childprocess (3.0.0)
choice (0.2.0)
chromedriver-helper (1.2.0)
archive-zip (~> 0.10)
nokogiri (~> 1.8)
Expand Down Expand Up @@ -185,8 +186,6 @@ GEM
letter_opener (1.7.0)
launchy (~> 2.2)
libv8 (3.16.14.19)
libv8 (3.16.14.19-x86_64-darwin-18)
libv8 (3.16.14.19-x86_64-linux)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
Expand All @@ -203,6 +202,7 @@ GEM
mime-types-data (3.2021.0225)
mini_magick (4.11.0)
mini_mime (1.1.0)
mini_portile2 (2.8.0)
minitest (5.14.4)
minitest-retry (0.2.1)
minitest (>= 5.0)
Expand All @@ -211,8 +211,12 @@ GEM
multi_json (1.15.0)
multi_xml (0.6.0)
multipart-post (2.1.1)
mysql2 (0.5.4)
net-ldap (0.17.0)
nio4r (2.5.8)
nokogiri (1.13.3)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
nokogiri (1.13.3-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.13.3-x86_64-linux)
Expand Down Expand Up @@ -288,6 +292,11 @@ GEM
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-erd (1.7.2)
activerecord (>= 4.2)
activesupport (>= 4.2)
choice (~> 0.2.0)
ruby-graphviz (~> 1.2)
rails-html-sanitizer (1.3.0)
loofah (~> 2.3)
rails-pry (0.0.1)
Expand All @@ -310,13 +319,16 @@ GEM
responders (3.0.1)
actionpack (>= 5.0)
railties (>= 5.0)
rexml (3.2.5)
roo (2.8.3)
nokogiri (~> 1)
rubyzip (>= 1.3.0, < 3.0.0)
roo-xls (1.2.0)
nokogiri
roo (>= 2.0.0, < 3)
spreadsheet (> 0.9.0)
ruby-graphviz (1.2.5)
rexml
ruby-ole (1.2.12.2)
ruby-vips (2.1.4)
ffi (~> 1.12)
Expand Down Expand Up @@ -387,11 +399,13 @@ GEM
nokogiri (~> 1.8)

PLATFORMS
ruby
x86_64-darwin-18
x86_64-darwin-19
x86_64-linux

DEPENDENCIES
activerecord-jdbcmysql-adapter
ajax-datatables-rails (~> 0.3.1)
audited (~> 4.7)
awesome_print
Expand Down Expand Up @@ -426,6 +440,7 @@ DEPENDENCIES
mini_magick
minitest-retry
momentjs-rails (>= 2.9.0)
mysql2
omniauth-facebook
omniauth-github
omniauth-google-oauth2
Expand All @@ -440,6 +455,7 @@ DEPENDENCIES
pry-rails
puma (~> 5.6.4)
rails (~> 5.2.2)
rails-erd
rails-pry
rails_email_validator
redis
Expand Down
8 changes: 8 additions & 0 deletions app/models/enumerations/dashboard_enum.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class DashboardEnum < Enumeration

Check notice

Code scanning / Rubocop

Document classes and non-namespace modules.

Style/Documentation: Missing top-level documentation comment for `class DashboardEnum`.

Check notice

Code scanning / Rubocop

Add the frozen_string_literal comment to the top of files to help transition to frozen string literals by default.

Style/FrozenStringLiteralComment: Missing frozen string literal comment.
scope :default, -> {where(name: 'Default')}

Check notice

Code scanning / Rubocop

Checks that block braces have or don't have surrounding space. For blocks taking parameters, checks that the left brace has or doesn't have trailing space.

Layout/SpaceInsideBlockBraces: Space missing inside {.

Check notice

Code scanning / Rubocop

Checks that block braces have or don't have surrounding space. For blocks taking parameters, checks that the left brace has or doesn't have trailing space.

Layout/SpaceInsideBlockBraces: Space missing inside }.
OptionName = :enumeration_dashboard_type

Check notice

Code scanning / Rubocop

Constants should use SCREAMING_SNAKE_CASE.

Naming/ConstantName: Use SCREAMING_SNAKE_CASE for constants.

def option_name
OptionName
end
end
8 changes: 8 additions & 0 deletions app/models/enumerations/report_enum.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class ReportEnum < Enumeration

Check notice

Code scanning / Rubocop

Document classes and non-namespace modules.

Style/Documentation: Missing top-level documentation comment for `class ReportEnum`.

Check notice

Code scanning / Rubocop

Add the frozen_string_literal comment to the top of files to help transition to frozen string literals by default.

Style/FrozenStringLiteralComment: Missing frozen string literal comment.
scope :default, -> {where(name: 'Default')}

Check notice

Code scanning / Rubocop

Checks that block braces have or don't have surrounding space. For blocks taking parameters, checks that the left brace has or doesn't have trailing space.

Layout/SpaceInsideBlockBraces: Space missing inside {.

Check notice

Code scanning / Rubocop

Checks that block braces have or don't have surrounding space. For blocks taking parameters, checks that the left brace has or doesn't have trailing space.

Layout/SpaceInsideBlockBraces: Space missing inside }.
OptionName = :enumeration_report_type

Check notice

Code scanning / Rubocop

Constants should use SCREAMING_SNAKE_CASE.

Naming/ConstantName: Use SCREAMING_SNAKE_CASE for constants.

def option_name
OptionName
end
end