Module: Decidim::Lausanne::Budgets

Defined in:
lib/decidim/lausanne/budgets.rb,
lib/decidim/lausanne/budgets/admin.rb,
lib/decidim/lausanne/budgets/engine.rb,
lib/decidim/lausanne/budgets/version.rb,
lib/decidim/lausanne/budgets/workflows.rb,
app/models/decidim/lausanne/budgets/order.rb,
lib/decidim/lausanne/budgets/admin_engine.rb,
app/queries/decidim/lausanne/budgets/query.rb,
lib/decidim/lausanne/budgets/workflows/all.rb,
lib/decidim/lausanne/budgets/workflows/one.rb,
app/models/decidim/lausanne/budgets/project.rb,
lib/decidim/lausanne/budgets/workflows/base.rb,
app/cells/decidim/lausanne/budgets/base_cell.rb,
app/commands/decidim/lausanne/budgets/command.rb,
app/models/decidim/lausanne/budgets/line_item.rb,
app/cells/decidim/lausanne/budgets/budget_cell.rb,
app/commands/decidim/lausanne/budgets/checkout.rb,
app/cells/decidim/lausanne/budgets/project_cell.rb,
app/models/decidim/lausanne/budgets/user_record.rb,
lib/decidim/lausanne/budgets/project_serializer.rb,
app/cells/decidim/lausanne/budgets/budget_m_cell.rb,
app/cells/decidim/lausanne/budgets/project_m_cell.rb,
app/commands/decidim/lausanne/budgets/cancel_order.rb,
app/commands/decidim/lausanne/budgets/add_line_item.rb,
app/forms/decidim/lausanne/budgets/user_record_form.rb,
app/models/decidim/lausanne/budgets/lausanne_budget.rb,
app/cells/decidim/lausanne/budgets/budgets_list_cell.rb,
app/cells/decidim/lausanne/budgets/project_tags_cell.rb,
app/helpers/decidim/lausanne/budgets/projects_helper.rb,
app/permissions/decidim/lausanne/budgets/permissions.rb,
app/services/decidim/lausanne/budgets/project_search.rb,
app/forms/decidim/lausanne/budgets/admin/project_form.rb,
app/cells/decidim/lausanne/budgets/budgets_header_cell.rb,
app/commands/decidim/lausanne/budgets/remove_line_item.rb,
app/models/decidim/lausanne/budgets/application_record.rb,
app/queries/decidim/lausanne/budgets/filtered_projects.rb,
app/forms/decidim/lausanne/budgets/admin/component_form.rb,
app/helpers/decidim/lausanne/budgets/application_helper.rb,
app/services/decidim/lausanne/budgets/project_search_rs.rb,
app/cells/decidim/lausanne/budgets/budget_list_item_cell.rb,
app/commands/decidim/lausanne/budgets/create_user_record.rb,
app/commands/decidim/lausanne/budgets/update_user_record.rb,
app/jobs/decidim/lausanne/budgets/send_order_summary_job.rb,
app/cells/decidim/lausanne/budgets/project_list_item_cell.rb,
app/commands/decidim/lausanne/budgets/admin/create_budget.rb,
app/commands/decidim/lausanne/budgets/admin/update_budget.rb,
app/mailers/decidim/lausanne/budgets/order_summary_mailer.rb,
app/cells/decidim/lausanne/budgets/limit_announcement_cell.rb,
app/cells/decidim/lausanne/budgets/project_voted_hint_cell.rb,
app/commands/decidim/lausanne/budgets/admin/create_project.rb,
app/commands/decidim/lausanne/budgets/admin/destroy_budget.rb,
app/commands/decidim/lausanne/budgets/admin/update_project.rb,
app/controllers/decidim/lausanne/budgets/orders_controller.rb,
app/permissions/decidim/lausanne/budgets/admin/permissions.rb,
app/cells/decidim/lausanne/budgets/project_votes_count_cell.rb,
app/commands/decidim/lausanne/budgets/admin/destroy_project.rb,
app/controllers/concerns/decidim/lausanne/budgets/orderable.rb,
lib/decidim/lausanne/budgets/current_user_record_middleware.rb,
app/controllers/decidim/lausanne/budgets/projects_controller.rb,
app/forms/decidim/lausanne/budgets/admin/lausanne_budget_form.rb,
app/helpers/decidim/lausanne/budgets/admin/application_helper.rb,
app/controllers/decidim/lausanne/budgets/line_items_controller.rb,
app/cells/decidim/lausanne/budgets/project_selected_status_cell.rb,
app/controllers/decidim/lausanne/budgets/application_controller.rb,
app/cells/decidim/lausanne/budgets/budget_information_modal_cell.rb,
app/controllers/decidim/lausanne/budgets/user_records_controller.rb,
app/controllers/decidim/lausanne/budgets/admin/projects_controller.rb,
app/presenters/decidim/lausanne/budgets/admin_log/budget_presenter.rb,
app/presenters/decidim/lausanne/budgets/admin_log/project_presenter.rb,
app/controllers/decidim/lausanne/budgets/lausanne_budgets_controller.rb,
app/controllers/concerns/decidim/lausanne/budgets/needs_current_order.rb,
app/controllers/decidim/lausanne/budgets/admin/application_controller.rb,
app/controllers/decidim/lausanne/budgets/admin/attachments_controller.rb,
app/forms/decidim/lausanne/budgets/admin/project_import_proposals_form.rb,
app/commands/decidim/lausanne/budgets/admin/import_proposals_to_budgets.rb,
app/controllers/decidim/lausanne/budgets/admin/lausanne_budgets_controller.rb,
app/controllers/decidim/lausanne/budgets/admin/proposals_imports_controller.rb,
app/queries/decidim/lausanne/budgets/metrics/budget_followers_metric_measure.rb,
app/queries/decidim/lausanne/budgets/metrics/budget_participants_metric_measure.rb,
app/controllers/decidim/lausanne/budgets/admin/attachment_collections_controller.rb,
app/serializers/decidim/lausanne/budgets/data_portability_budgets_order_serializer.rb

Overview

Base module for this engine.

Defined Under Namespace

Modules: Admin, AdminLog, ApplicationHelper, Metrics, NeedsCurrentOrder, Orderable, ProjectsHelper, Workflows Classes: AddLineItem, AdminEngine, ApplicationController, ApplicationRecord, BaseCell, BudgetCell, BudgetInformationModalCell, BudgetListItemCell, BudgetMCell, BudgetsHeaderCell, BudgetsListCell, CancelOrder, Checkout, Command, CreateUserRecord, CurrentUserRecordMiddleware, DataPortabilityBudgetsOrderSerializer, Engine, FilteredProjects, LausanneBudget, LausanneBudgetsController, LimitAnnouncementCell, LineItem, LineItemsController, Order, OrderSummaryMailer, OrdersController, Permissions, Project, ProjectCell, ProjectListItemCell, ProjectMCell, ProjectSearch, ProjectSearchRs, ProjectSelectedStatusCell, ProjectSerializer, ProjectTagsCell, ProjectVotedHintCell, ProjectVotesCountCell, ProjectsController, Query, RemoveLineItem, SendOrderSummaryJob, UpdateUserRecord, UserRecord, UserRecordForm, UserRecordsController

Class Method Summary collapse

Class Method Details

.decidim_versionObject



10
11
12
# File 'lib/decidim/lausanne/budgets/version.rb', line 10

def self.decidim_version
  [">= 0.26","<0.28"].freeze
end

.versionObject



6
7
8
# File 'lib/decidim/lausanne/budgets/version.rb', line 6

def self.version
  "0.1.0"
end

.workflowsObject

Public: Stores the array of available workflows



11
12
13
14
15
16
# File 'lib/decidim/lausanne/budgets/workflows.rb', line 11

def self.workflows
  @workflows ||= {
    one: Workflows::One,
    all: Workflows::All
  }
end