lib/vedeu/repositories/repositories/borders.rb in vedeu-0.4.18 vs lib/vedeu/repositories/repositories/borders.rb in vedeu-0.4.19
- old
+ new
@@ -1,10 +1,9 @@
module Vedeu
# Allows the storing of interface/view borders independent of the interface
# instance.
- #
class Borders < Repository
class << self
# @return [Vedeu::Borders]
@@ -15,25 +14,15 @@
# Remove all stored models from the repository.
#
# @return [Vedeu::Borders]
def reset!
- @borders = Vedeu::Borders.register_repository(Vedeu::Border)
+ @borders = Vedeu::Borders.register(Vedeu::Border)
end
end
- # @param name [String] The name of the stored border.
- # @return [Vedeu::Border|Vedeu::Null::Border]
- def by_name(name)
- if registered?(name)
- find(name)
-
- else
- Vedeu::Null::Border.new(name)
-
- end
- end
+ null Vedeu::Null::Border
end # Borders
end # Vedeu