Sha256: fda4ca6b4ea84be77091747114a35151ad27f914c8f43f034eab56881435be79

Contents?: true

Size: 271 Bytes

Versions: 9

Compression:

Stored size: 271 Bytes

Contents

module OscMacheteRails::JobHelpers
  private
    def parse_job!(args)
      jobs = args.grep(/:jobs$/)
      args = args - jobs

      job_attrib = jobs.first || "#{args.first.underscore}_job:jobs"
      Rails::Generators::GeneratedAttribute.parse job_attrib
    end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
osc_machete_rails-2.1.2 lib/generators/osc_machete_rails/job_helpers.rb
osc_machete_rails-2.1.0 lib/generators/osc_machete_rails/job_helpers.rb
osc_machete_rails-2.0.0 lib/generators/osc_machete_rails/job_helpers.rb
osc_machete_rails-1.3.1 lib/generators/osc_machete_rails/job_helpers.rb
osc_machete_rails-1.3.0 lib/generators/osc_machete_rails/job_helpers.rb
osc_machete_rails-1.2.2 lib/generators/osc_machete_rails/job_helpers.rb
osc_machete_rails-2.0.0.pre1 lib/generators/osc_machete_rails/job_helpers.rb
osc_machete_rails-1.2.1 lib/generators/osc_machete_rails/job_helpers.rb
osc_machete_rails-1.2.0 lib/generators/osc_machete_rails/job_helpers.rb