Sha256: 9d8b000b033f06563c122703d101f3a348a5ae2c2400438a92a7324768b99ca3

Contents?: true

Size: 506 Bytes

Versions: 5

Compression:

Stored size: 506 Bytes

Contents

# frozen_string_literal: true

module Cybele
  module Helpers
    module ShowFor
      def configure_show_for
        # Run the show_for generator
        bundle_command 'exec rails generate show_for:install'

        # Add show_for turkish file
        copy_file 'config/locales/show_for.tr.yml', 'config/locales/show_for.tr.yml'
      end

      def add_show_for_gem
        # Add show_for gem
        append_file('Gemfile', template_content('show_for/show_for_Gemfile.erb'))
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cybele-2.3.2 lib/cybele/helpers/show_for.rb
cybele-2.3.1 lib/cybele/helpers/show_for.rb
cybele-2.2.0 lib/cybele/helpers/show_for.rb
cybele-2.1.0 lib/cybele/helpers/show_for.rb
cybele-2.0.0 lib/cybele/helpers/show_for.rb