File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+ ActiveAdmin . register Profile do
3
+ menu parent : 'Users'
4
+ permit_params :user_id , :bio
5
+ end
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+ class ProfilePolicy < ApplicationPolicy
3
+ end
Original file line number Diff line number Diff line change 74
74
75
75
describe "files in load path" do
76
76
it "it should load sorted files" do
77
- expect ( application . files . map { |f | File . basename ( f ) } ) . to eq ( %w( admin_users.rb companies.rb dashboard.rb stores.rb ) )
77
+ expect ( application . files . map { |f | File . basename ( f ) } ) . to eq %w( admin_users.rb companies.rb dashboard.rb profiles.rb stores.rb )
78
78
end
79
79
80
80
it "should load files in the first level directory" do
103
103
begin
104
104
FileUtils . mkdir_p ( test_dir )
105
105
FileUtils . touch ( test_file )
106
- expect ( application . files . map { |f | File . basename ( f ) } ) . to eq ( %w( posts.rb admin_users.rb companies.rb dashboard.rb stores.rb ) )
106
+ expect ( application . files . map { |f | File . basename ( f ) } ) . to (
107
+ eq ( %w( posts.rb admin_users.rb companies.rb dashboard.rb profiles.rb stores.rb ) )
108
+ )
107
109
ensure
108
110
FileUtils . remove_entry_secure ( test_dir , force : true )
109
111
end
You can’t perform that action at this time.
0 commit comments