Sha256: 81b494e73371a405c5b82b15c032bb7089af060d571d4117f7d57472f6411aa0

Contents?: true

Size: 360 Bytes

Versions: 14

Compression:

Stored size: 360 Bytes

Contents

require 'csv'

module ThinkFeelDoEngine
  module Reports
    class Reporter
      def self.fetch_reports
        return [] unless Rails.application.config.respond_to?(:reports)
        Rails.application.config.reports
      end

      def self.file_path(id)
        Rails.root.join("reports/#{id.to_s.gsub("_", "").downcase}.csv")
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
think_feel_do_dashboard-1.2.1 spec/dummy/app/models/think_feel_do_engine/reports/reporter.rb
think_feel_do_dashboard-1.2.0.beta1 spec/dummy/app/models/think_feel_do_engine/reports/reporter.rb
think_feel_do_dashboard-1.1.21 spec/dummy/app/models/think_feel_do_engine/reports/reporter.rb
think_feel_do_dashboard-1.1.20 spec/dummy/app/models/think_feel_do_engine/reports/reporter.rb
think_feel_do_dashboard-1.1.19 spec/dummy/app/models/think_feel_do_engine/reports/reporter.rb
think_feel_do_dashboard-1.1.18 spec/dummy/app/models/think_feel_do_engine/reports/reporter.rb
think_feel_do_dashboard-1.1.17 spec/dummy/app/models/think_feel_do_engine/reports/reporter.rb
think_feel_do_dashboard-1.1.16 spec/dummy/app/models/think_feel_do_engine/reports/reporter.rb
think_feel_do_dashboard-1.1.15 spec/dummy/app/models/think_feel_do_engine/reports/reporter.rb
think_feel_do_dashboard-1.1.14 spec/dummy/app/models/think_feel_do_engine/reports/reporter.rb
think_feel_do_dashboard-1.1.13 spec/dummy/app/models/think_feel_do_engine/reports/reporter.rb
think_feel_do_dashboard-1.1.12 spec/dummy/app/models/think_feel_do_engine/reports/reporter.rb
think_feel_do_dashboard-1.1.11 spec/dummy/app/models/think_feel_do_engine/reports/reporter.rb
think_feel_do_dashboard-1.1.10 spec/dummy/app/models/think_feel_do_engine/reports/reporter.rb