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

Version Path
decidim-core-0.16.1 lib/decidim/view_model.rb
decidim-core-0.16.0 lib/decidim/view_model.rb
decidim-core-0.15.2 lib/decidim/view_model.rb
decidim-core-0.15.1 lib/decidim/view_model.rb
decidim-core-0.15.0 lib/decidim/view_model.rb
decidim-core-0.14.4 lib/decidim/view_model.rb
decidim-core-0.14.3 lib/decidim/view_model.rb
decidim-core-0.14.2 lib/decidim/view_model.rb
decidim-core-0.14.1 lib/decidim/view_model.rb