search for: mycreat

Displaying 1 result from an estimated 1 matches for "mycreat".

Did you mean: mycreate
2010 Jun 16
2
class methods from module where active rec is involved
...; DB_Database = ''proj1'' DB_Port = 5432 ActiveRecord::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...