lib/arql/commands/models.rb in arql-0.2.8 vs lib/arql/commands/models.rb in arql-0.2.9
- old
+ new
@@ -25,10 +25,10 @@
end
end
Pry.commands.block_command 'm' do |regexp|
puts
- puts Models::models_table(regexp.try { |e| eval(e) })
+ puts Models::models_table(regexp.try { |e| e.start_with?('/') ? eval(e) : Regexp.new(e) })
end
Pry.commands.alias_command 'l', 'm'
end