Displaying 3 results from an estimated 3 matches for "propertyvalu".
Did you mean:
propertyvalue
2009 Jun 30
0
ri_cal 0.7.0 Released
...projects/30941/tickets/5
* Fixed http://rick_denatale.lighthouseapp.com/projects/30941/tickets/9
### 0.0.10
* Fixed http://rick_denatale.lighthouseapp.com/projects/30941/tickets/8
### 0.0.9
* Fixed http://rick_denatale.lighthouseapp.com/projects/30941/tickets/4
Missing comparison methods in PropertyValue::Date
* Fixed http://rick_denatale.lighthouseapp.com/projects/30941/tickets/6
Type of dtstart and dtend (DATE or DATETIME) now preserved on enumeration
### 0.0.8
* Fixed http://rick_denatale.lighthouseapp.com/projects/30941-ri_cal/tickets/1
EXDATE and RDATE now pick up the timezone fro...
2006 Apr 22
0
Is it possible to have one class containing tw
...able, polymorphic => true
end
class Property < ActiveRecord::Base
has_one :name, :as => :markable
has_one :value, :as => :markable
end
?
Based on what I know of the underlying implementation, this looks
impossible. One alternative is to declare artificial classes
PropertyName and PropertyValue, each of which has_one :value, :as =>
markable and then change Property to has_one :property_name and has_one
:property_value:
class PropertyName < ActiveRecord::Base
has_one :value, :as => :markable
end
class PropertyValue < ActiveRecord::Base
has_one :value, :as => :markab...
2005 Nov 02
4
acts_as_metadata?
...rty_name varchar(255),
property_type text -- MySQL or Ruby type
);
CREATE TABLE property_value(
id int not null primary key auto_increment,
foreign_id int not null, -- PK of the referenced object
property_id int not null, -- Property
has_many :property_values, PropertyValue belongs_to :property
property_value text not null -- YAML-serialized
(serialize :property_value)
);
so that for our example, we would have:
INSERT INTO property(ar_class,property_name,property_type) VALUES
(''Person'',''Phone Number'',''varchar(255)...