Sha256: a20ba2c3b239e333458797a8d40743006c4e38cdc5c48da187edd97e8dc1d3f9
Contents?: true
Size: 554 Bytes
Versions: 19
Compression:
Stored size: 554 Bytes
Contents
require 'generators/devise/views_generator' module DevisePhone module Generators class ViewsGenerator < Devise::Generators::ViewsGenerator source_root File.expand_path("../../../../app/views/devise", __FILE__) desc 'Copies all DevisePhone views to your application.' def generate_view directory 'phone', "#{target_path}/phone" # directory 'path_to_install_directory', 'path_to_source_directory' end def target_path @target_path ||= "app/views/#{scope || :devise}" end end end end
Version data entries
19 entries across 19 versions & 1 rubygems