Sha256: 65b893130079562be0d00855390fe8d3710c5382f0a6621469a8fb81009d4614

Contents?: true

Size: 157 Bytes

Versions: 11

Compression:

Stored size: 157 Bytes

Contents

module Shortener::ActiveRecordExtension
  def has_shortened_urls
    has_many :shortened_urls, class_name: "::Shortener::ShortenedUrl", as: :owner
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
shortener-0.6.2 lib/shortener/active_record_extension.rb
shortener-0.6.1 lib/shortener/active_record_extension.rb
shortener-0.5.6 lib/shortener/active_record_extension.rb
shortener-0.5.5 lib/shortener/active_record_extension.rb
shortener-0.5.4 lib/shortener/active_record_extension.rb
shortener-0.5.3 lib/shortener/active_record_extension.rb
shortener-0.5.2 lib/shortener/active_record_extension.rb
shortener-0.4.1 lib/shortener/active_record_extension.rb
shortener-0.5.1 lib/shortener/active_record_extension.rb
shortener-0.5.0 lib/shortener/active_record_extension.rb
shortener-0.4.0 lib/shortener/active_record_extension.rb