Sha256: 7fd07be8c11dd225cf144771a7446cb36f7ffa3fc9c256ba68aa6c64c1682f06
Contents?: true
Size: 573 Bytes
Versions: 15
Compression:
Stored size: 573 Bytes
Contents
module Wobauth module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../../templates", __FILE__) desc "Copy locale files to your application" def copy_locale ['en', 'de'].each do |lang| copy_file "../../../config/locales/#{lang}.yml", "config/locales/wobauth.#{lang}.yml" end end desc "create initializer" def copy_initializer copy_file "initializers/wobauth.rb", "config/initializers/wobauth.rb" end end end end
Version data entries
15 entries across 15 versions & 1 rubygems