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

fix ghost.initPlugins: the activePlugins setting wasn't read correctly. #1261

Closed
wants to merge 1 commit into from

Conversation

frysbe
Copy link

@frysbe frysbe commented Oct 24, 2013

  • fix comment: activePlugins is read from settings, not from config.
  • model.Settings.activePlugins: this doesn't work and is replaced by model.Settings.read('activePlugins').
  • because Settings.read returns a promise, the last line is wrapped with "when(...).then(...)".

The commit is necessary to get plugins working. To test this you can manually change the activePlugins setting in the settings database.

- fix comment: activePlugins is read from settings, not from config.
- model.Settings.activePlugins: this doesn't work and is replaced by model.Settings.read('activePlugins').
- because Settings.read returns a promise, the last line is wrapped with "when(...).then(...)".

The commit is necessary to get plugins working. To test this you can manually change the activePlugins setting in the settings database.
@jgable
Copy link
Contributor

jgable commented Oct 24, 2013

I already have most of this covered in #931. Except the comment change I think.

I would favor my approach, but I'm sure anyone would say that about their own code.

@frysbe
Copy link
Author

frysbe commented Oct 24, 2013

Thanks for the heads-up. I will see if #931 works for me and than I can close this PR.

@ErisDS
Copy link
Member

ErisDS commented Oct 24, 2013

@frysbe: There is a lot of ongoing discussion around the Plugin API, I encourage you to join in - but if you're trying to build plugins for Ghost be warned the API is not finalised.

@frysbe
Copy link
Author

frysbe commented Oct 25, 2013

@jgable: #931 works for me, so I am closing this PR.

@ErisDS: Thanks for the info. Don't worry, I am just getting my feet wet and I know I can't count on anything at this stage. Is the best place for discussion #931?

@frysbe frysbe closed this Oct 25, 2013
@ErisDS
Copy link
Member

ErisDS commented Oct 25, 2013

@frysbe #769 :) Thanks for testing and closing 👍

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

Successfully merging this pull request may close these issues.

None yet

3 participants