Sha256: 020b2d0e5b2e4b1922683acbda1615fb37cfaf7559fb4323ae78314725300ab8

Contents?: true

Size: 278 Bytes

Versions: 8

Compression:

Stored size: 278 Bytes

Contents

module ActiveadminJobs
  module JobExtensions
    def description
      I18n.t!("activeadmin_jobs.#{job_class.tableize.singularize}.description")
    rescue I18n::MissingTranslationData
      ""
    end
  end
end

JobNotifier::Job.send(:include, ActiveadminJobs::JobExtensions)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
activeadmin_jobs-0.4.1 lib/activeadmin_jobs/job_extensions.rb
activeadmin_jobs-0.4.0 lib/activeadmin_jobs/job_extensions.rb
activeadmin_jobs-0.3.0 lib/activeadmin_jobs/job_extensions.rb
activeadmin_jobs-0.2.1 lib/activeadmin_jobs/job_extensions.rb
activeadmin_jobs-0.2.0 lib/activeadmin_jobs/job_extensions.rb
activeadmin_jobs-0.1.2 lib/activeadmin_jobs/job_extensions.rb
activeadmin_jobs-0.1.1 lib/activeadmin_jobs/job_extensions.rb
activeadmin_jobs-0.1.0 lib/activeadmin_jobs/job_extensions.rb