Displaying 1 result from an estimated 1 matches for "activenode".
2010 Jun 16
2
class methods from module where active rec is involved
...cord::Base.establish_connection(
:adapter => "postgresql",
:host => DB_Host,
:database => DB_Database,
:username => "me"
# :password => "secret"
)
module ModelClassMethods
def mycreate(pkey_val)
pkey_fld = self.primary_key
end
end
class ActiveNode < ActiveRecord::Base
extend ModelClassMethods
# include ModelMethods
end
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gman...