forked from zammad/zammad
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Intoduced new generic model class structure based on simple provider …
…structure and DRYed up LDAP and Exchange sequences.
- Loading branch information
1 parent
c3255f0
commit 1821c97
Showing
6 changed files
with
34 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
class Sequencer | ||
class Unit | ||
module Common | ||
module ModelClass | ||
class Base < Sequencer::Unit::Common::Provider::Attribute | ||
|
||
provides :model_class | ||
|
||
private | ||
|
||
def model_class | ||
@model_class ||= class_name.constantize | ||
end | ||
|
||
def class_name | ||
self.class.name.sub('Sequencer::Unit::Common::ModelClass', '') | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class Sequencer | ||
class Unit | ||
module Common | ||
module ModelClass | ||
class User < Sequencer::Unit::Common::ModelClass::Base | ||
end | ||
end | ||
end | ||
end | ||
end |
18 changes: 0 additions & 18 deletions
18
lib/sequencer/unit/import/exchange/folder_contact/static_attributes.rb
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.