Sha256: 37609567906a9add78cea0b3772729cb52d74fc8a48f688a5335726ba72dac05

Contents?: true

Size: 464 Bytes

Versions: 32

Compression:

Stored size: 464 Bytes

Contents

module Effective
  module EffectiveDatatable
    module Charts

      def charts_data
        HashWithIndifferentAccess.new().tap do |retval|
          (charts || {}).each do |name, chart|
            retval[name] = {
              name: chart[:name],
              type: chart[:type],
              options: chart[:options],
              data: (instance_exec(&chart[:block]) if chart[:block])
            }
          end
        end
      end

    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
effective_datatables-2.6.11 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.10 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.9 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.8 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.7 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.6 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.5 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.4 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.3 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.2 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.1 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.0 app/models/effective/effective_datatable/charts.rb