Sha256: 1ccb4862316b47fa2f5b14e48f5c4ee5f212ad5a6cbc5125579d923d06330f54
Contents?: true
Size: 603 Bytes
Versions: 7
Compression:
Stored size: 603 Bytes
Contents
module Vedeu # Allows the storing of view groups. class Groups < Repository class << self # @return [Vedeu::Groups] alias_method :groups, :repository # Remove all stored models from the repository. # # @return [Vedeu::Groups] def reset! @groups = register(Vedeu::Group) end end # @param name [String] The name of the stored group. # @return [Vedeu::Group] def by_name(name) if registered?(name) find(name) else Vedeu::Group.new(name: name).store end end end # Groups end # Vedeu
Version data entries
7 entries across 7 versions & 1 rubygems