aboutsummaryrefslogblamecommitdiffstats
path: root/lib/postcodes-norway/railtie.rb
blob: e03bbfac658dade308aedf4e698b918536b25edd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                       
                          





                                     
                                        


       
# postcodes-norway: Access norwegian postcode data from Ruby.
# Copyright (C) 2015  Harald Eilertsen <haraldei@anduin.net>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

require 'postcodes-norway'
require 'rails'

module PostCodes
  class Railtie < Rails::Railtie
    railtie_name :norwegian_postcodes
    rake_tasks do
      load 'tasks/postcodes-norway.rake'
    end
  end
end