class ActiveFedora::Relation
def create(*args, &block)
users.create(name: nil) # validation on name
# #
users.create { |user| user.name = 'tenderlove' }
users.create # #
users.create(name: 'fxn')
users.create # #
users = User.where(name: 'Oscar')
==== Examples
Expects arguments in the same format as +Base.create+.
defined in the relation. Returns the initialized object if validation fails.
Tries to create a new record with the same scoped attributes
def create(*args, &block) scoping { @klass.create(*args, &block) } end