Sha256: 8830356397fa78f75fd66e62f7a6a9e977ea1305e6f55acfdd314475fb900b3f

Contents?: true

Size: 530 Bytes

Versions: 62

Compression:

Stored size: 530 Bytes

Contents

module Workarea
  module PluginsHelper
    def append_partials(name, locals = {})
      appends = Plugin.skip_appends(
        Plugin.partials_appends[name],
        Workarea.config.skip_partials
      )

      return if appends.blank?

      appends.inject([]) do |arr, paths|
        Array(paths).each do |path|
          arr << render(partial: path, locals: locals)
        end
        arr
      end.join("\n").html_safe
    end

    def partials_to_append?(name)
      Plugin.partials_appends[name].present?
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.4.27 app/helpers/workarea/plugins_helper.rb
workarea-core-3.5.4 app/helpers/workarea/plugins_helper.rb
workarea-core-3.4.26 app/helpers/workarea/plugins_helper.rb
workarea-core-3.5.3 app/helpers/workarea/plugins_helper.rb
workarea-core-3.4.25 app/helpers/workarea/plugins_helper.rb
workarea-core-3.5.2 app/helpers/workarea/plugins_helper.rb
workarea-core-3.4.24 app/helpers/workarea/plugins_helper.rb
workarea-core-3.5.1 app/helpers/workarea/plugins_helper.rb
workarea-core-3.4.23 app/helpers/workarea/plugins_helper.rb
workarea-core-3.4.22 app/helpers/workarea/plugins_helper.rb
workarea-core-3.5.0 app/helpers/workarea/plugins_helper.rb
workarea-core-3.4.21 app/helpers/workarea/plugins_helper.rb
workarea-core-3.5.0.beta.1 app/helpers/workarea/plugins_helper.rb
workarea-core-3.4.20 app/helpers/workarea/plugins_helper.rb
workarea-core-3.4.19 app/helpers/workarea/plugins_helper.rb
workarea-core-3.4.18 app/helpers/workarea/plugins_helper.rb
workarea-core-3.4.17 app/helpers/workarea/plugins_helper.rb
workarea-core-3.4.16 app/helpers/workarea/plugins_helper.rb
workarea-core-3.4.15 app/helpers/workarea/plugins_helper.rb
workarea-core-3.4.14 app/helpers/workarea/plugins_helper.rb