Sha256: c0ad54e7982a1da429ec740285caf10f3e457614255670997ca8ece03b04bbf5

Contents?: true

Size: 1.13 KB

Versions: 14

Compression:

Stored size: 1.13 KB

Contents

# Decidim::Proposals

The Proposals module adds one of the main components of Decidim: allows users to contribute to a participatory process by creating proposals.

## Usage

Proposals will be available as a Component for a Participatory Process.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'decidim-proposals'
```

And then execute:

```bash
bundle
```

### Configuring Similarity

`pg_trgm` is a PostgreSQL extension providing simple fuzzy string matching used in the Proposal wizard to find similar published proposals (title and the body).

Create config variables in your app's `/config/initializers/decidim-proposals.rb`:

```ruby
Decidim::Proposals.configure do |config|
  config.similarity_threshold = 0.25 # default value
  config.similarity_limit = 10 # default value
end
```

`similarity_threshold`(real): Sets the current similarity threshold that is used by the % operator. The threshold must be between 0 and 1 (default is 0.3).

`similarity_limit`: number of maximum results.

## Contributing

See [Decidim](https://github.com/decidim/decidim).

## License

See [Decidim](https://github.com/decidim/decidim).

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
decidim-proposals-0.14.4 README.md
decidim-proposals-0.14.3 README.md
decidim-proposals-0.14.2 README.md
decidim-proposals-0.14.1 README.md
decidim-proposals-0.13.1 README.md
decidim-proposals-0.12.2 README.md
decidim-proposals-0.13.0 README.md
decidim-proposals-0.12.1 README.md
decidim-proposals-0.13.0.pre1 README.md
decidim-proposals-0.12.0 README.md
decidim-proposals-0.11.2 README.md
decidim-proposals-0.12.0.pre README.md
decidim-proposals-0.11.1 README.md
decidim-proposals-0.11.0.pre1 README.md