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.21 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.12.2 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.12.1 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.12.0 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.11.2 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.11.1 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.11.0 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.10.0 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.9.0 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.8.0 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.7.0 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.20 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.19 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.18 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.17 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.16 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.15 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.14 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.13 app/models/effective/effective_datatable/charts.rb
effective_datatables-2.6.12 app/models/effective/effective_datatable/charts.rb