refactors managed user info into management layout

This commit is contained in:
rgarcia
2015-10-12 14:03:23 +02:00
parent e66572b8ba
commit f55c3974aa
15 changed files with 44 additions and 43 deletions

View File

@@ -0,0 +1,12 @@
class Verification::Management::ManagedUser
include ActiveModel::Model
attr_accessor :user
def self.find(document_type, document_number)
User.where('document_number is not null').
find_or_initialize_by(document_type: document_type,
document_number: document_number)
end
end