Coder Social home page Coder Social logo

complete's Introduction

Complete

Short description and motivation.

Usage

How to use my plugin.

Installation

Add this line to your application's Gemfile:

gem "complete"

And then execute:

$ bundle

Or install it yourself as:

$ gem install complete

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.

complete's People

Contributors

cjilbert504 avatar

Watchers

James Cloos avatar Steve Polito avatar

complete's Issues

Add indexes for completor_type and completor_id

Need to add the metioned indexes to the completions table. Reference this line from the schema.rb file:

t.index ["completable_type", "completable_id"], name: "index_complete_completions_on_completable"

Seems like something along these lines will be the generator command for this:

rails generate migration AddIndexToCompleteCompleteions completor_type:string:index completor_id:integer:index

Generate Completion model

This should be a polymorphic model, starting with the absolute bare minimum.

Completion completable_id:integer, completable_type:string

Add completor column to completions table

The completion model needs to be able to track the entity that completed a record. As not all apps will call that entity "User", this should be a polymorphic association such that the entity could be of similar classes as:
["User", "Customer", "Member"] etc

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.