Sha256: e4466e8c216a5804d499413fade078ac4b000e1ea49c177c43ccdb591e2b06cc

Contents?: true

Size: 519 Bytes

Versions: 18

Compression:

Stored size: 519 Bytes

Contents

require '<%= require_path %>/version'

module Pantograph
  module <%= plugin_name.pantograph_class %>
    # Return all .rb files inside the "actions" and "helper" directory
    def self.all_classes
      Dir[File.expand_path('**/{actions,helper}/*.rb', File.dirname(__FILE__))]
    end
  end
end

# By default we want to import all available actions and helpers
# A plugin can contain any number of actions and plugins
Pantograph::<%= plugin_name.pantograph_class %>.all_classes.each do |current|
  require current
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
pantograph-0.1.22 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb
pantograph-0.1.21 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb
pantograph-0.1.20 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb
pantograph-0.1.19 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb
pantograph-0.1.17 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb
pantograph-0.1.16 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb
pantograph-0.1.15 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb
pantograph-0.1.14 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb
pantograph-0.1.13 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb
pantograph-0.1.12 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb
pantograph-0.1.10 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb
pantograph-0.1.8 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb
pantograph-0.1.7 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb
pantograph-0.1.6 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb
pantograph-0.1.4 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb
pantograph-0.1.3 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb
pantograph-0.1.1 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb
pantograph-0.1.0 pantograph/lib/pantograph/plugins/template/lib/pantograph/plugin/%plugin_name%.rb.erb