Sha256: 3a6ef9dfd1d3ee85571e4f5af24a0452cb948a484f6600c177ad16674f202bc9
Contents?: true
Size: 321 Bytes
Versions: 16
Compression:
Stored size: 321 Bytes
Contents
require_dependency "landable/author" module Landable class RegistrationService def self.call(attributes) if author = Author.where(username: attributes[:username]).first author else Author.create!(attributes.slice(:username, :email, :first_name, :last_name)) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems