link_to_action 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/denispeplin/link_to_action)
2
+
1
3
  # LinkToAction
2
4
 
3
5
  Set of helpers: link_to_new, link_to_edit, link_to_destroy
@@ -0,0 +1,3 @@
1
+ To copy a LinkToAction initializer to your Rails App, with some configuration values, just do:
2
+
3
+ rails generate link_to_action:install
@@ -0,0 +1,15 @@
1
+ require 'rails/generators'
2
+ require 'rails/generators/named_base'
3
+
4
+ module LinkToActions
5
+ module Generators
6
+ class InstallGenerator < Rails::Generators::Base
7
+ desc "Copy LinkToAction configuration file"
8
+ source_root File.expand_path('../templates', __FILE__)
9
+
10
+ def copy_initializers
11
+ copy_file 'link_to_action.rb', 'config/initializers/link_to_action.rb'
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,7 @@
1
+ LinkToAction.setup do |config|
2
+ # Use CanCan, default false
3
+ # config.use_cancan = false
4
+
5
+ # Add icons to links, default false
6
+ # config.use_icons = false
7
+ end
@@ -1,3 +1,3 @@
1
1
  module LinkToAction
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: link_to_action
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -23,6 +23,9 @@ files:
23
23
  - LICENSE
24
24
  - README.md
25
25
  - Rakefile
26
+ - lib/generators/link_to_action/USAGE
27
+ - lib/generators/link_to_action/install_generator.rb
28
+ - lib/generators/link_to_action/templates/link_to_action.rb
26
29
  - lib/link_to_action.rb
27
30
  - lib/link_to_action/locale/en.yml
28
31
  - lib/link_to_action/version.rb