Sha256: ff9ce70079841d499de354fc8e9ee09fc378504096946ccf482c72fa33fb2673

Contents?: true

Size: 165 Bytes

Versions: 14

Compression:

Stored size: 165 Bytes

Contents

class License < ActiveRecord::Base

  class << self
    def options_for_select
      License.all.map{ |l| ["#{l.name} (#{l.short_code})", l.id] }
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
homesteading_publisher-0.2.4 app/models/license.rb
homesteading_publisher-0.2.3 app/models/license.rb
homesteading_publisher-0.2.2 app/models/license.rb
homesteading_publisher-0.2.1 app/models/license.rb
homesteading_publisher-0.2.0 app/models/license.rb
homesteading_publisher-0.1.3 app/models/license.rb
homesteading_publisher-0.1.2 app/models/license.rb
homesteading_publisher-0.1.1 app/models/license.rb
homesteading_publisher-0.1.0 app/models/license.rb
homesteading_publisher-0.0.11 app/models/license.rb
homesteading_publisher-0.0.10 app/models/license.rb
homesteading_publisher-0.0.9 app/models/license.rb
homesteading_publisher-0.0.8 app/models/license.rb
homesteading_publisher-0.0.7 app/models/license.rb