Sha256: b0fca190466cb18c940e5babb1d0e6f02ce91935655a8a02084462f1f31dedcc
Contents?: true
Size: 557 Bytes
Versions: 9
Compression:
Stored size: 557 Bytes
Contents
# frozen_string_literal: true module Decidim class ViewModel < Cell::ViewModel include ActionView::Helpers::TranslationHelper include ::Cell::Translation include Decidim::ResourceHelper include Decidim::ScopesHelper include ActionController::Helpers include Decidim::ActionAuthorization include Decidim::ActionAuthorizationHelper include Decidim::ReplaceButtonsHelper def current_user context[:current_user] end private def decidim Decidim::Core::Engine.routes.url_helpers end end end
Version data entries
9 entries across 9 versions & 1 rubygems