Sha256: 0e3a6f572e0736291faf6924f7c74590c2b68c7114c49d45d0e756e303db0c66

Contents?: true

Size: 396 Bytes

Versions: 22

Compression:

Stored size: 396 Bytes

Contents

require 'rails/generators/base'

module VisualConditionBuilder
  class DictionaryGenerator < Rails::Generators::NamedBase
    source_root File.expand_path("../../templates", __FILE__)

    def generate_dictionary
      @dictionary_name = file_name.classify
      template "generic_dictionary.erb", File.join('app/condition_dictionaries', "#{file_name.underscore}_dictionary.rb")
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
visual_condition_builder-2.2.7 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-2.2.6 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-2.2.5 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-2.2.4 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-2.2.3 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-2.2.2 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-2.2.1 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-2.2.0 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-2.1.6 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-2.1.5 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-2.1.4 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-2.1.3 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-2.1.2 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-2.1.1 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-2.1.0 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-2.0.0 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-0.1.6 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-0.1.5 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-0.1.4 lib/generators/visual_condition_builder/dictionary_generator.rb
visual_condition_builder-0.1.3 lib/generators/visual_condition_builder/dictionary_generator.rb