GithubHelp home page GithubHelp logo

comingle's Introduction

Comingle

simple plugin to provide active_resource API to mingle. Tested with Mingle 2.3

Setup

  1. Install as either a plugin:

    ruby script/plugin install <git repo path here>

or as a gem:

sudo gem install ssoroka-comingle
  1. copy the plugin’s config/mingle.yml to your project config/ directory, edit as appropriate.

  2. Set Mingle::Base config settings:

If using rails, add a config/initializer to load settings for the mingle class. There is an example initializer in config/initializers/comingle.rb

To use this outside of Rails, set the configuration with something like:

Mingle::Base.setup_from_config(File.join(File.dirname(__FILE__), %w(config mingle.yml)))

Examples

Try:

last_card = Mingle::Card.find(:last)
puts last_card.name

# update the updated_at timestamp of the card, nothing too destructive. :)
last_card.updated_at = Time.now
last_card.save

Bugs

There is a known problem with updating a card’s comments directly, changing the comments and saving the card will not actually write the new comments. I hear this is going to be resolved in Mingle 3.0. I’ll have to review it when Mingle 3.0 is released.

One work-around is to use transitions instead, which seem to have no issues updating comments.

Copyright © 2009 Steven Soroka. See LICENSE for details.

comingle's People

Contributors

ssoroka avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.