Sha256: ff6d706b3428ae69397dcf48068541d695c022bedb281be80c9ef0ac22632271

Contents?: true

Size: 246 Bytes

Versions: 6

Compression:

Stored size: 246 Bytes

Contents

# frozen_string_literal: true

require_relative "../jp_local_gov"

module JpLocalGov
  module Base
    def jp_local_gov(column_name)
      define_method "local_government" do
        JpLocalGov.find(send(column_name))
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jp_local_gov-1.0.0 lib/jp_local_gov/base.rb
jp_local_gov-0.3.1 lib/jp_local_gov/base.rb
jp_local_gov-0.3.0 lib/jp_local_gov/base.rb
jp_local_gov-0.2.1 lib/jp_local_gov/base.rb
jp_local_gov-0.2.0 lib/jp_local_gov/base.rb
jp_local_gov-0.1.0 lib/jp_local_gov/base.rb