Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excluding a bridge causes error #423

Closed
jcrate opened this issue Apr 17, 2015 · 0 comments
Closed

Excluding a bridge causes error #423

jcrate opened this issue Apr 17, 2015 · 0 comments

Comments

@jcrate
Copy link
Contributor

jcrate commented Apr 17, 2015

Excluding any bridge causes an error:

gems/active_scaffold-3.4.20/lib/active_scaffold/bridges.rb:52:in block in prepare_all': undefined methodinstall?' for nil:NilClass (NoMethodError)

def self.prepare_all
  return false if bridges_prepared
  bridges.keys.each do |bridge_name|
    bridge = self[bridge_name]
    bridge.prepare if bridge.install?
  end
  self.bridges_prepared = true
end

Loading the bridge ([] aliased to load) returns nil if the bridge is excluded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant