Bertocq
28970c6701
Fix all Style/UnneededInterpolation rubocop issues and remove from rubocop_tod
2017-07-04 22:44:08 +02:00
Bertocq
4535fc9345
Create Sluggable concern, generates slug using name attribute before validation
...
Why:
* We need a way to generate a slug for a object given his name attribute value
How:
* A concern that generates the slug before validation
2017-07-04 18:40:54 +02:00
Bertocq
9f38192e13
Remove unnecesary frozen_string_literal comment
2017-07-04 17:25:15 +02:00
Raimond Garcia
e7e5b3c4a3
Merge branch 'master' into 1647-locale_site_customization
2017-07-04 12:11:07 +02:00
Bertocq
339597483e
Add incompatible scope to Budget Investment model
2017-07-04 01:34:25 +02:00
Bertocq
99052485fb
Recalculate heading winner investments when a winner is flagged as incompatible
2017-07-04 01:34:24 +02:00
Bertocq
640e0e1c2a
Use compatible filter when calculating budget heading winners
2017-07-04 01:34:24 +02:00
Bertocq
ed016d7afd
Add compatible scope to Budget Investment and use it on the winners scope
...
Why:
* Only compatible investments can be winners
How:
* Using the new column incompatible to filter compatible investments
2017-07-04 01:34:24 +02:00
María Checa
36d51b380b
Merge branch 'master' into 1647-locale_site_customization
2017-07-02 23:19:40 +02:00
María Checa
8894ec4f7c
Pages form improvements
...
Added `locale` validation to model and improved its form select tag performance.
2017-07-02 21:28:13 +02:00
María Checa
ed7b7f0361
Added scope to pages model
...
New scope to use when listing pages to show only the ones with current locale.
2017-07-02 14:54:11 +02:00
Eduardo Martinez Echevarria
a599a0b91e
Set legislation processes visibility depending on publication
2017-06-30 15:08:23 +02:00
Bertocq
c4ba35bf63
Revert rubocop autocorrections and add it to exclusion list on rubocop_todo file
2017-06-28 14:33:34 +02:00
Bertocq
904e3fdcfa
Fix all Style/HashSyntax rubocop issues and remove from rubocop_todo list
2017-06-28 14:12:51 +02:00
Bertocq
c9bc028524
Remove all unnecesary extra spacing and Layout/ExtraSpacing list from rubocop file
2017-06-28 14:12:51 +02:00
Bertocq
775da2d581
Remove all Layout/EmptyLines issues on code and file list from rubocop_todo
2017-06-28 14:12:51 +02:00
Bertocq
2fa92937d2
Fix all Style/BracesAroundHashParameters rubocop issues and remove them from rubocop_todo list
2017-06-28 14:12:51 +02:00
Bertocq
1c8e039862
Fix all Layout/SpaceInsideParens rubocop issues and remove files from rubocop_todo list
2017-06-26 18:06:01 +02:00
Bertocq
c4d90691b1
Fix all Layout/SpaceInLambdaLiteral rubocop issues and remove files from rubocop_todo list
2017-06-26 18:05:14 +02:00
Bertocq
f6fe9cc7d2
Fix all Layout/SpaceAroundOperators rubocop issues and remove file list from rubocop_todo list
2017-06-26 18:04:20 +02:00
Bertocq
d7b8777395
Fix all Layout/SpaceAroundEqualsInParameterDefault rubocop issues from rubocop_todo list
2017-06-26 18:03:40 +02:00
Bertocq
e6dd33bd66
Fix all Layout/SpaceAfterComma issues and remove from rubocop_todo list
2017-06-26 17:57:53 +02:00
Bertocq
01263050a6
Fix Layout/SpaceAfterNot rubocop issue and remove from rubocop_todo list
2017-06-26 17:57:53 +02:00
Bertocq
9763931f55
Fix all Layout/SpaceBeforeComma rubocop issues and remove from rubocop_todo list
2017-06-26 17:57:53 +02:00
Bertocq
b074090e92
Fix Layout/SpaceInsidePercentLiteralDelimiters rubocop issue and remove from rubocop todo list
2017-06-26 17:57:53 +02:00
Bertocq
a76033fb72
Fix all Style/StringLiteralsInInterpolation rubocop issues and remove from rubocop_todo list
2017-06-26 17:57:53 +02:00
Bertocq
80bcf38dc5
Fix all Layout/TrailingWhitespace rubocop issues and remove from rubocop_todo list
2017-06-26 17:57:53 +02:00
Bertocq
cf81c740b1
Fix Style/ZeroLengthPredicate rubocop issue and remove file list from rubocop_todo
2017-06-26 17:57:53 +02:00
Raimond Garcia
6e60f5acde
Merge pull request #1680 from consul/chore/small_rubocop_cleanup
...
Chore/small rubocop cleanup
2017-06-26 17:42:10 +02:00
Raimond Garcia
f41d3637cf
Merge pull request #1678 from consul/feature/1601#budget_winner_investments_button
...
Add button to Calculate Budget Winner investments
2017-06-26 17:41:08 +02:00
taitus
0222d61e1e
Remove interest.rb
2017-06-26 13:52:23 +02:00
taitus
64ff75c384
Add displaying no_milestones text on admin
2017-06-26 13:48:25 +02:00
Bertocq
154cdac332
Add calculate_winners on Admin Budget controller, route and ability for admins
2017-06-25 15:47:04 +02:00
Bertocq
391b32e165
Remove all Layout/BlockEndNewline rubocop issues and files from rubocop_todo list
2017-06-25 15:46:46 +02:00
Bertocq
8d84ed712a
Fix all Rails/Validation rubocop issues and remove files from rubocop_todo list
2017-06-25 15:46:46 +02:00
taitus
f220952883
Add CRUD Milestone on Admin::BudgetInvestment. Rename Checkpoint to Milestone.
2017-06-24 22:38:48 +02:00
taitus
beeb5412d7
New Checkpoint model. Update factories. Model specs.
2017-06-24 22:38:48 +02:00
Raimond Garcia
6667494629
Merge pull request #1670 from consul/feature/1601#generate_budget_heading_winners
...
Add Budget Investments filter by winners
2017-06-21 17:53:01 +02:00
rgarcia
9ebc5ccf34
removes user locale validation
2017-06-21 13:11:59 +02:00
Bertocq
1a20c1c785
Add winners scope to Budget Investments
2017-06-21 01:32:22 +02:00
Raimond Garcia
09a2f2b795
Merge pull request #1660 from consul/fix/rubocop_issues
...
Fix some Rubocop issues
2017-06-20 21:49:59 +02:00
Juanjo Bazán
315c57929a
allows managers to create users without email
...
allows managers to create users without email
hides email preferences from account page for email-less users
prevents email delivery to users with no email
adds spec for user creation from management
adds specs for user's email requirement
adds spec for no deliveries if no email
2017-06-19 13:02:48 +02:00
Bertocq
6e1fa53e2c
Fix Lint/DefEndAlignment rubocop issues and remove from rubocop_todo list
2017-06-19 10:45:18 +02:00
Bertocq
21c6d1c4dd
Cleanup Lint/AssignmentInCondition rubocop issues on code and remove it from ruboco_todo list
2017-06-19 10:45:18 +02:00
Juanjo Bazán
9ab0f9cf8b
Merge branch 'master' into amiedes-api-dev-PRs-2
2017-06-14 12:46:58 +02:00
Raimond Garcia
ae82a563d6
Merge pull request #1651 from consul/fix/direct_message_today_scope
...
Fix DirectMessage today scope
2017-06-14 11:42:54 +02:00
kikito
782a68e9d3
Merge branch 'master' into amiedes-api-dev-PRs-2
2017-06-14 09:58:17 +02:00
Bertocq
129e93dd12
Use Time.current converted to Date by the database DirectMessage today scope
...
Why:
* Database stores created_at as timestamp with the timezone, so when comparing DATE(created_at) to something we have to convert it to DATE as well with the postresql native function, but using Time.current instead of Date.current to take into account the user timezone
2017-06-14 01:15:26 +02:00
Bertocq
a147765273
Add enabled_phases_and_publications_count helper method on legislation process for views
2017-06-13 23:48:31 +02:00
Bertocq
cb7358bb97
Send to both Phase and Publication classes the enabled flag and use for enabled? helper method
2017-06-13 23:47:14 +02:00