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

Version Path
devise_phone-0.1.26 lib/generators/devise_phone/views_generator.rb
devise_phone-0.1.25 lib/generators/devise_phone/views_generator.rb
devise_phone-0.1.24 lib/generators/devise_phone/views_generator.rb
devise_phone-0.1.23 lib/generators/devise_phone/views_generator.rb
devise_phone-0.1.22 lib/generators/devise_phone/views_generator.rb
devise_phone-0.1.21 lib/generators/devise_phone/views_generator.rb
devise_phone-0.1.2 lib/generators/devise_phone/views_generator.rb
devise_phone-0.1.1 lib/generators/devise_phone/views_generator.rb
devise_phone-0.1.0 lib/generators/devise_phone/views_generator.rb
devise_phone-0.0.17 lib/generators/devise_phone/views_generator.rb
devise_phone-0.0.1667 lib/generators/devise_phone/views_generator.rb
devise_phone-0.0.1666 lib/generators/devise_phone/views_generator.rb
devise_phone-0.0.1665 lib/generators/devise_phone/views_generator.rb
devise_phone-0.0.1664 lib/generators/devise_phone/views_generator.rb
devise_phone-0.0.1663 lib/generators/devise_phone/views_generator.rb
devise_phone-0.0.1662 lib/generators/devise_phone/views_generator.rb
devise_phone-0.0.1661 lib/generators/devise_phone/views_generator.rb
devise_phone-0.0.166 lib/generators/devise_phone/views_generator.rb
devise_phone-0.0.164 lib/generators/devise_phone/views_generator.rb