Sha256: a2d3d5883e87d079b1062c98536cd60d69d653a0c548f1093002a9af9ee28946

Contents?: true

Size: 704 Bytes

Versions: 24

Compression:

Stored size: 704 Bytes

Contents

module KepplerFrontend
  module Concerns
    # Concern con la configuracion de parametros de los formulario
    module Yml
      extend ActiveSupport::Concern

      def update_functions_yml
        functions = KepplerFrontend::Function.all
        file =  File.join("#{Rails.root}/rockets/keppler_frontend/config/functions.yml")
        data = functions.as_json.to_yaml
        File.write(file, data)
      end

      def update_parameters_yml
        parameters = KepplerFrontend::Parameter.all
        file =  File.join("#{Rails.root}/rockets/keppler_frontend/config/parameters.yml")
        data = parameters.as_json.to_yaml
        File.write(file, data)
      end

      private

    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
keppler-2.1.22 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.21 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.20 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.19 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.18 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.17 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.16 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.15 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.14 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.13 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.12 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.11 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.10 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.9 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.8 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.7 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.6 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.5 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.4 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb
keppler-2.1.3 installer/core/rockets/keppler_frontend/app/controllers/keppler_frontend/concerns/yml.rb