lib/vedeu/repositories/repositories/groups.rb in vedeu-0.4.15 vs lib/vedeu/repositories/repositories/groups.rb in vedeu-0.4.16
- old
+ new
@@ -2,22 +2,22 @@
# Allows the storing of view groups.
#
class Groups < Repository
- # @return [Vedeu::Groups]
- def self.groups
- @groups ||= reset!
- end
+ class << self
- # @return [Vedeu::Groups]
- def self.repository
- Vedeu.groups
- end
+ # @return [Vedeu::Groups]
+ def groups
+ @groups ||= reset!
+ end
+ alias_method :repository, :groups
- # @return [Vedeu::Groups]
- def self.reset!
- @groups = Vedeu::Groups.new(Vedeu::Group)
+ # @return [Vedeu::Groups]
+ def reset!
+ @groups = Vedeu::Groups.register_repository(Vedeu::Group)
+ end
+
end
end # Groups
end # Vedeu