I'm in trouble with an pl/sql query. My user ActiveRecord::Base class
has a specific query. When I call this query, I've an error "TypeError
no _dump_data is defined for class Proc".
There is the ActiveRecord::Base class
class Utilisateur < ActiveRecord::Base
self.table_name = 'v1_utilisateur'
self.primary_key = 'utilid'
self.sequence_name = 'SQ1_UTILISATEUR'
has_many :util_service,
:foreign_key => 'utilid',
:conditions => "modcode='SERVICE'",
:order => 'sercode'
has_many :direction,
:class_name => "Utilisateur",
:finder_sql => Proc.new{%Q{SELECT * FROM v1_utilisateur}}
end
I use this instruction to call the query
session[:direction] = @user.direction
What am I doing wrong?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment