Project

General

Profile

Bug #11805

error creating organization in assign_default_templates

Added by Thomas McKay about 7 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

/home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activemodel-3.2.21/lib/active_model/attribute_methods.rb:407:in `method_missing'
/home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.21/lib/active_record/attribute_methods.rb:149:in `method_missing'
/home/vagrant/code/foreman/app/models/taxonomy.rb:187:in `block in assign_default_templates'
/home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.21/lib/active_record/relation/delegation.rb:6:in `each'
/home/vagrant/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.21/lib/active_record/relation/delegation.rb:6:in `each'
/home/vagrant/code/foreman/app/models/taxonomy.rb:186:in `assign_default_templates'

Related issues

Related to Foreman Remote Execution - Bug #21168: Can't create a locationClosed2017-10-02
Has duplicate Foreman Remote Execution - Bug #11991: [foreman-tasks/action] [E] undefined method `job_templates' for #<Organization:0x007f1a85025a48> (NoMethodError)Duplicate2015-09-29
Blocked by Foreman - Bug #11825: Adding template types from plugins doesn't work with taxonomiesClosed2015-09-15

Associated revisions

Revision 1eb70135 (diff)
Added by Stephen Benjamin about 7 years ago

fixes #11805 - add taxonomy association for job templates

Revision 39c0cd3a
Added by Stephen Benjamin about 7 years ago

Merge pull request #38 from stbenjam/11805

fixes #11805 - add taxonomy association for job templates

Revision 89a2739e (diff)
Added by Ivan Necas about 7 years ago

Refs #11805 - use before_create instead of after_create for default templates

Otherwise we hit issues described in rails/rails#12180 (comment), will
not be needed once https://github.com/theforeman/foreman/pull/2723 is
in and we don't support older versions

Revision eda5f46d
Added by Ivan Necas about 7 years ago

Merge pull request #40 from iNecas/taxonomy-workaround

Refs #11805 - use before_create instead of after_create for default templates

History

#1 Updated by The Foreman Bot about 7 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 85
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/38 added
  • Pull request deleted ()

#2 Updated by Anonymous about 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Ivan Necas about 7 years ago

  • Blocked by Bug #11825: Adding template types from plugins doesn't work with taxonomies added

#4 Updated by Marek Hulán almost 7 years ago

  • Legacy Backlogs Release (now unused) set to 95

#5 Updated by Stephen Benjamin almost 7 years ago

  • Has duplicate Bug #11991: [foreman-tasks/action] [E] undefined method `job_templates' for #<Organization:0x007f1a85025a48> (NoMethodError) added

#6 Updated by Ivan Necas almost 5 years ago

  • Related to Bug #21168: Can't create a location added

Also available in: Atom PDF