lib/resourcelogic/aliases.rb in resourcelogic-0.12.2 vs lib/resourcelogic/aliases.rb in resourcelogic-0.12.3
- old
+ new
@@ -49,9 +49,11 @@
include InstanceMethods
end
end
module Config
+ # This really isn't needed thanks to the new parent_from_params? method.
+ # TODO: review this and remove it if neccessary.
def path_alias(alias_name, model_name)
current_aliases = path_aliases
model_name = model_name.to_sym
current_aliases[model_name] ||= []
current_aliases[model_name] << alias_name.to_sym
\ No newline at end of file