Sha256: 3d91a5a8a57be3b955d406fa7351fd60e141255db75a1ecbe435709f26199185

Contents?: true

Size: 358 Bytes

Versions: 8

Compression:

Stored size: 358 Bytes

Contents

require 'generators/batman/common'
module Batman
  module Generators
    class HelperGenerator < ::Rails::Generators::NamedBase
      include Common

      desc "This generator creates a Batman helper"

      def create_batman_helper
        template "helper.coffee", "#{js_path}/helpers/#{plural_name.downcase}_helper.js.coffee"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
batman-rails-0.0.9 lib/generators/batman/helper_generator.rb
batman-rails-0.0.8 lib/generators/batman/helper_generator.rb
batman-rails-0.0.6 lib/generators/batman/helper_generator.rb
batman-rails-0.0.5 lib/generators/batman/helper_generator.rb
batman-rails-0.0.4 lib/generators/batman/helper_generator.rb
batman-rails-0.0.3 lib/generators/batman/helper_generator.rb
batman-rails-0.0.2 lib/generators/batman/helper_generator.rb
batman-rails-0.0.1 lib/generators/batman/helper_generator.rb