auto-complete models fails em belongs_to reference
Example:
# attribute from model description
# create_table :nota_fatura_cfop do |t|
# t.string :description, :limit => 65
# end
class NotaFatura::Cfop < ActiveRecord::Base
set_table_name 'nota_fatura_cfop'
end
class NotaFatura < ActiveRecord::Base
belongs_to :cfop,
:class_name => 'NotaFatura::Cfop',
:foreign_key => 'cfop_id'
end
nota = NotaFatura.new
nota.<atributes> - auto complete is ok ! '
nota.cfop (auto complete is ok, show belongs to reference)
nota.cfop.description (no auto-complete from attributes in cfop, description not show)
Regard's
Alexandre Riveira
www.objecttraining.com.br
Please sign in to leave a comment.
Hello Alexandre,
Thanks for bug, I've filled an issue - http://www.jetbrains.net/jira/browse/RUBY-3936
Tanks !!!
Alexandre Riveira