Sha256: d8207458e096a0a7e738ef26448aa525f54ae6e45115d1ab67f3ac5bea8a6d71

Contents?: true

Size: 995 Bytes

Versions: 20

Compression:

Stored size: 995 Bytes

Contents

module EnjuCirculation
  module Generators
    class ViewsGenerator < Rails::Generators::Base
      source_root File.expand_path('../../../../app/views', __FILE__)

      def copy_files
        directories = %w(
          baskets
          carrier_type_has_checkout_types
          checked_items
          checkins
          checkout_stat_has_manifestations
          checkout_stat_has_users
          checkout_types
          checkouts
          circulation_statuses
          item_has_use_restrictions
          lending_policies
          manifestation_checkout_stats
          manifestation_reserve_stats
          my_accounts
          reserve_stat_has_manifestations
          reserve_stat_has_users
          reserves
          use_restrictions
          user_checkout_stats
          user_group_has_checkout_types
          user_reserve_stats
          users
        )

        directories.each do |dir|
          directory dir, "app/views/#{dir}"
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre20 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre19 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre18 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre17 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre16 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre15 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre14 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre13 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre12 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre11 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre10 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre9 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre8 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre7 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre6 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre5 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre4 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre3 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre2 lib/generators/enju_circulation/views_generator.rb
enju_circulation-0.1.0.pre lib/generators/enju_circulation/views_generator.rb