lib/vedeu/repositories/repository.rb in vedeu-0.4.23 vs lib/vedeu/repositories/repository.rb in vedeu-0.4.24
- old
+ new
@@ -20,19 +20,10 @@
# @!attribute [r] storage
# @return [void]
attr_reader :storage
- # @param model [Class]
- # @param storage [Class|Hash]
- # @return [Vedeu::Repository]
- def self.register(model = nil, storage = {})
- new(model, storage).tap do |klass|
- Vedeu::Repositories.register(klass.repository)
- end
- end
-
# Returns a new instance of Vedeu::Repository.
#
# @param model [Class]
# @param storage [Class|Hash]
# @return [Vedeu::Repository]
@@ -43,10 +34,10 @@
# Returns the repository class.
#
# @return [Class]
def repository
- self.class # .name
+ self.class
end
# @param name [String] The name of the stored model.
# @return [void]
def by_name(name)