Sha256: 4a8724483ff97d10776a88810b3b65d8b208054c0ac5d26476e44bf10b83a09b

Contents?: true

Size: 454 Bytes

Versions: 5

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

module Tramway
  module Landing
    module ApplicationHelper
      include Tramway::Admin::RussianCasesHelper
      include Tramway::Profiles::LinksHelper if defined?(::Tramway::Profiles)

      def actual_forms(forms)
        forms = forms.select { |f| f.form_name != 'user_sign_up' } if @signed_in
        forms = forms.select { |f| f.form_name != 'user_sign_in' } if @signed_in
        forms
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tramway-landing-3.1.0.4 app/helpers/tramway/landing/application_helper.rb
tramway-landing-3.1.0.3 app/helpers/tramway/landing/application_helper.rb
tramway-landing-3.1.0.2 app/helpers/tramway/landing/application_helper.rb
tramway-landing-3.1.0.1 app/helpers/tramway/landing/application_helper.rb
tramway-landing-3.1 app/helpers/tramway/landing/application_helper.rb