<< | Index | >>
update method
values = {}
values.store(@language, @model.at(0))
if(values.empty?
)
add_warning(:w_no_fachinfo_saved, :fachinfo_upload, nil)
return self
end
Note
validate_iksnrs method
def validate_iksnrs @valid_iksnrs = [@model.registration.iksnr] @errors = {} all_iksnrs = @model.inject([]) { |array, fi_document| array | iksnrs(fi_document) } all_iksnrs.each { |iksnr| if(reg = @session.app.registration(iksnr)) if(allowed?(reg)) @valid_iksnrs.push(iksnr) else add_warning(:w_access_denied_iksnr, :fachinfo_upload, iksnr) end else add_warning(:w_unknown_iksnr, :fachinfo_upload, iksnr) end } if(@valid_iksnrs.empty?) err = create_error(:e_no_valid_iksnrs, :iksnrs, all_iksnrs) @errors.store(:iksnrs, err) end @valid_iksnrs end
Note
Note
headers << context.script('type' => 'text/javascript') do <<-EOS dojo.addOnLoad(function(){ setTimeout(function(){ dojo.require("dojox.analytics.Urchin") dojo.addOnLoad(function(){ var tracker = new dojox.analytics.Urchin({ acct: "UA-115196-1" }) }) }, 100) }) EOS