Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
diaspora
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Milan
diaspora
Commits
9a1590fa
Commit
9a1590fa
authored
14 years ago
by
Raphael
Browse files
Options
Downloads
Patches
Plain Diff
Move user module requires out to the user modules definition file
parent
9898c8b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/models/user.rb
+2
-6
2 additions, 6 deletions
app/models/user.rb
lib/diaspora/user.rb
+11
-0
11 additions, 0 deletions
lib/diaspora/user.rb
with
13 additions
and
6 deletions
app/models/user.rb
+
2
−
6
View file @
9a1590fa
...
...
@@ -2,9 +2,7 @@
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
require
File
.
join
(
Rails
.
root
,
'lib/diaspora/user/friending'
)
require
File
.
join
(
Rails
.
root
,
'lib/diaspora/user/querying'
)
require
File
.
join
(
Rails
.
root
,
'lib/diaspora/user/receiving'
)
require
File
.
join
(
Rails
.
root
,
'lib/diaspora/user'
)
require
File
.
join
(
Rails
.
root
,
'lib/salmon/salmon'
)
class
InvitedUserValidator
<
ActiveModel
::
Validator
...
...
@@ -20,9 +18,7 @@ end
class
User
include
MongoMapper
::
Document
plugin
MongoMapper
::
Devise
include
Diaspora
::
UserModules
::
Friending
include
Diaspora
::
UserModules
::
Querying
include
Diaspora
::
UserModules
::
Receiving
include
Diaspora
::
UserModules
include
Encryptor
::
Private
QUEUE
=
MessageHandler
.
new
...
...
This diff is collapsed.
Click to expand it.
lib/diaspora/user.rb
0 → 100644
+
11
−
0
View file @
9a1590fa
require
File
.
join
(
Rails
.
root
,
'lib/diaspora/user/friending'
)
require
File
.
join
(
Rails
.
root
,
'lib/diaspora/user/querying'
)
require
File
.
join
(
Rails
.
root
,
'lib/diaspora/user/receiving'
)
module
Diaspora
module
UserModules
include
Friending
include
Querying
include
Receiving
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment