lib/vedeu/repositories/model.rb in vedeu-0.6.29 vs lib/vedeu/repositories/model.rb in vedeu-0.6.30
- old
+ new
@@ -41,18 +41,10 @@
end
model
end
- # Fetch an instance of a repository's model by name.
- #
- # @param name [String|Symbol]
- # @return [void]
- def by_name(name)
- repository.by_name(name) if repository
- end
-
# Provide a convenient way to define the child or children of
# a model.
#
# @param klass [Class] The member (singular) or collection
# (multiple) class name for the respective model.
@@ -129,10 +121,10 @@
when 'Border'.freeze then 'Vedeu::Borders::DSL'.freeze
when 'Buffer'.freeze then 'Vedeu::Buffers::DSL'.freeze
when 'Geometry'.freeze then 'Vedeu::Geometry::DSL'.freeze
when 'Group'.freeze then 'Vedeu::Groups::DSL'.freeze
when 'Interface'.freeze then 'Vedeu::Interfaces::DSL'.freeze
- when 'Keymap'.freeze then 'Vedeu::Keymaps::DSL'.freeze
+ when 'Keymap'.freeze then 'Vedeu::Input::DSL'.freeze
when 'Menu'.freeze then 'Vedeu::Menus::DSL'.freeze
# when 'ModelTestClass' then 'Vedeu::Repositories::ModelTestClass::DSL'
else
'Vedeu::DSL::'.freeze + demodulize(self.class.name)
end