Issue #5842 has been updated by Josh Cooper. Status changed from Accepted to Rejected
I cannot reproduce this and likely the rails feature is correctly handling this now: <pre> $ gem list *** LOCAL GEMS *** actionmailer (3.2.8) actionpack (3.2.8) activemodel (3.2.8) activerecord (3.2.8) activeresource (3.2.8) activesupport (3.2.8) arel (3.0.2) builder (3.0.3) bundler (1.1.5) diff-lcs (1.1.3) erubis (2.7.0) fuubar (1.0.0) hike (1.2.1) i18n (0.6.1) journey (1.0.4) json (1.7.5) mail (2.4.4) metaclass (0.0.1) mime-types (1.19) mocha (0.10.5) multi_json (1.3.6) polyglot (0.3.3) rack (1.4.1) rack-cache (1.2) rack-ssl (1.3.2) rack-test (0.6.1) rails (3.2.8) railties (3.2.8) rake (0.9.2.2) rdoc (3.12) rspec (2.11.0) rspec-core (2.11.1) rspec-expectations (2.11.3) rspec-instafail (0.2.4) rspec-mocks (2.11.2) ruby-ldap (0.9.12) ruby-progressbar (0.0.10) rubygems-bundler (1.0.3) rvm (1.11.3.5) sprockets (2.1.3) sqlite3 (1.3.6) thor (0.16.0) tilt (1.3.3) treetop (1.4.10) tzinfo (0.3.33) $ irb 1.8.7 :001 > require 'puppet' => true 1.8.7 :002 > Puppet::Indirector::Indirection.instances.each do |ind| 1.8.7 :003 > klasses = Puppet::Indirector::Terminus.terminus_classes(ind) 1.8.7 :004?> puts "#{ind}: #{klasses.inspect}" 1.8.7 :005?> end report: [:processor, :rest, :yaml] resource: [:active_record, :ral, :rest, :store_configs] resource_type: [:parser, :rest] facts: [:active_record, :couch, :facter, :inventory_active_record, :inventory_service, :memory, :network_device, :rest, :store_configs, :yaml] node: [:active_record, :exec, :ldap, :memory, :plain, :rest, :store_configs, :yaml] catalog: [:active_record, :compiler, :json, :queue, :rest, :static_compiler, :store_configs, :yaml] key: [:ca, :disabled_ca, :file] certificate: [:ca, :disabled_ca, :file, :rest] certificate_request: [:ca, :disabled_ca, :file, :rest] certificate_revocation_list: [:ca, :disabled_ca, :file, :rest] certificate_status: [:file, :rest] data_binding: [:hiera, :none] status: [:local, :rest] file_bucket_file: [:file, :rest, :selector] => [:report, :resource, :resource_type, :facts, :node, :catalog, :key, :certificate, :certificate_request, :certificate_revocation_list, :certificate_status, :data_binding, :status, :file_bucket_file] </pre> ---------------------------------------- Bug #5842: The 'active_record' terminus does not load Rails https://projects.puppetlabs.com/issues/5842#change-78478 Author: Luke Kanies Status: Rejected Priority: Normal Assignee: Category: Rails Target version: Affected Puppet version: Keywords: Branch: Apparently its normal usage loads Rails for you, but not if you just try to load it directly: <pre> $ irb >> require 'puppet' => true >> Puppet::Indirector::Indirection.instances.each do |ind| ?> klasses = Puppet::Indirector::Terminus.terminus_classes(ind) >> puts "#{ind}: #{klasses.inspect}" >> end Puppet::Error: Could not autoload /Users/luke/puppet/lib/puppet/indirector/facts/active_record.rb: uninitialized constant Puppet::Rails from /Users/luke/puppet/lib/puppet/util/autoload.rb:119:in `loadall' from /Users/luke/puppet/lib/puppet/util/autoload.rb:109:in `each' from /Users/luke/puppet/lib/puppet/util/autoload.rb:109:in `loadall' from /Users/luke/puppet/lib/puppet/util/autoload.rb:108:in `each' from /Users/luke/puppet/lib/puppet/util/autoload.rb:108:in `loadall' from /Users/luke/puppet/lib/puppet/indirector/terminus.rb:116:in `terminus_classes' from (irb):3 from (irb):2:in `each' from (irb):2 </pre> The problem goes away if you manually load 'puppet/rails'. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to puppet-bugs@googlegroups.com. To unsubscribe from this group, send email to puppet-bugs+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.