I have a question regarding to extend a subclass from an abstract class.
Suppose I have an abstract class which has 3 properties in the table:
class Event < ActiveRecord::Base
self.abstract_class = true
// event migration
class CreateEvents < ActiveRecord::Migration
create_table :events do |t|
If I want to extend this class from this event class, say a Party class:
class Party < Event
and it has 1 properties in its own party table.
My question is that is there a way in Rails so that I can carry those 3
properties from the Event class to the Party class?
The problem is that I don't know how to carry out the parent properties
to the child class automatically. Or do I need to type all the parent
properties everytime I need to extend from the abstract class (this
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 email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.