Skip to content

attribute not updating #2

Description

@greenail

I have a model with two attributes, and a bunch of temporary attr_accessors.

class DailyModel
include DataMapper::Resource
property :id,Serial
property :name, String, :nullable => false
property :yaml, String, :nullable => false
attr_accessor :usage,:max_instances,:model_min,:day,:ami_type,:model_max,:ami_types,:instance_hours,:weekend_days,:weekend_usage,:ri_one_time,:temp_hash

For some reason the yaml attribute does not save unless I change the name attribute. is there some namespace clobbering happening somewhere, or is this a bug in the way update works?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions