Sha256: 178977a61d76f08b0fdc2f5835aa054f215c989c7ccbb693731de1e3d31c470e

Contents?: true

Size: 581 Bytes

Versions: 1

Compression:

Stored size: 581 Bytes

Contents

%w(pry-rails pry-remote better_errors binding_of_caller meta_request annotate).each{ |gem| require gem }

module H2ocubeRailsDevelopment
  class Railtie < Rails::Railtie
    railtie_name :h2ocube_rails_development

    rake_tasks do
      desc 'annotate all your models, tests, fixtures, factories and routes'
      task :annotate do
        system 'bundle exec annotate -i;bundle exec annotate -r'
      end

      desc 'remove all annotated comments'
      task 'annotate:remove' do
        system 'bundle exec annotate -d;bundle exec annotate -r -d'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
h2ocube_rails_development-0.1.2 lib/h2ocube_rails_development.rb