I have the following model in the datamap:
Class student: DataMaper :: resource property : ID, serial # & lt; Snip & gt; Property: permissions, string,: accessor = & gt; : Protected, Required = & gt; True ,: default = & gt; 'Standard' Asset: Valid, Boolean ,: Default = & gt; Incorrect, Required = & gt; True # and lieutenant; Snippet & gt; After the need for 'DM-validation' (version 1.1.0), and after starting my Sinatra app, I receive the following message: / library / ruby / Gems / 1.8 / gemstone / DM-legalization -1.1.0 / lib / DM-legalization. RB: 81: `Valid ': Wrong number of arguments (0 for 1) (/ 1) for / library / ruby / gemstone / 1.8 / gemstone / DM-legalization -1.1.0 / lib / DM-legalization RB: 81: In `savings_off '/ library / rabbi / games / 1.8 / games / DM -core-1.1.0 / leeb / DM-core / resources. RB: 1007: to` _save' in / library / ruby / James / 1.8 / Games / DM -core-1.1.0 / lib / dm-core / resource.rb: 1223: From 'run_once' / Library / Ruby / Gemstones / 1.8 / Gemstone / DM-Core -1.1.0 / Liby / DM-Core / Resources. RB: 1006: to `_save 'in / library / rabi / games / 1/8 / games / DM-core- 1.1.0 / lib / dm-core / resource.rb: 406: `Save 'in / Library / Ruby / James / 1/8 / Games / DM-validations-1.1.0 / lib / dm-validations.rb: 69 sec: / book 'Save' 1.8 / gem from 'Validation_context' from Celebrity / Ruby / Games / 1.8 / gems / dm-validations-1.1.0 / lib / dm-validations / support / context.rb: 30: / Dm-validation -1.1.0 / lib / dm-validat ions. RB: 69: Save 'in & lt; Snip & gt;
Am I using a 'reserved word' for my model? If so, then where can I find these words? I'm trying to name it "student_valid", but now I'm really curious about it.
Thanks
#valid? There is a way that adds DM-legalization. You can not use "valid" as a property name because it automatically defines "valid"? Method for a Boolean property type that validates DM-assumptions? Therefore error
This is a difficult situation, I think the way in which we validate property names, there is a need to improve. Thanks for reporting it.
Comments
Post a Comment