Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1171 from YaleSTC/1122_rails_admin
Browse files Browse the repository at this point in the history
resolves #1122
  • Loading branch information
orenyk committed Mar 23, 2015
2 parents 0e9370a + 119152c commit 4405f6e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/models/equipment_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class EquipmentModel < ActiveRecord::Base
belongs_to :category
has_and_belongs_to_many :requirements
has_many :equipment_items, dependent: :destroy
has_many :documents
has_many :reservations
has_many :checkin_procedures, dependent: :destroy
accepts_nested_attributes_for :checkin_procedures, \
Expand Down
4 changes: 4 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,9 @@
# Bullet.bugsnag = true
# Bullet.add_footer = true
# Bullet.stacktrace_includes = [ 'your_gem', 'your_middleware' ]

# Disable Rack Mini Profiler in certain parts of the application
Rack::MiniProfiler.config.skip_paths ||= []
Rack::MiniProfiler.config.skip_paths << '/admin'
end
end
6 changes: 3 additions & 3 deletions config/initializers/rails_admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

# Include only models we care about
config.included_models =
%w(Announcement, AppConfig, Blackout, Category, CheckinProcedure,
CheckoutProcedure, EquipmentModel, EquipmentItem, Requirement,
Reservation, User)
[Announcement, AppConfig, Blackout, Category, CheckinProcedure,
CheckoutProcedure, EquipmentModel, EquipmentItem, Requirement,
Reservation, User]
end

0 comments on commit 4405f6e

Please sign in to comment.