Skip to content

Commit c0f3b36

Browse files
committed
Add Rails engine in plugin to access to his asset
1 parent b00bfd9 commit c0f3b36

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@ source 'https://rubygems.org'
22

33
# Specify your gem's dependencies in errbit_github_plugin.gemspec
44
gemspec
5+
6+
gem 'errbit_plugin', :git => 'https://github.com/errbit/errbit_plugin.git'
7+
gem 'rspec'
8+
gem 'guard'
9+
gem 'guard-rspec'
10+
gem 'coveralls', :require => false

lib/errbit_github_plugin.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require "errbit_github_plugin/version"
22
require 'errbit_github_plugin/error'
33
require 'errbit_github_plugin/issue_tracker'
4+
require 'errbit_github_plugin/rails'
45

56
ErrbitPlugin::Register.add_issue_tracker(
67
'IssueTrackers::GithubIssuesTracker',

lib/errbit_github_plugin/rails.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
if defined?(Rails)
2+
module ErrbitGithubPlugin
3+
module Rails
4+
class Engine < ::Rails::Engine
5+
end
6+
end
7+
end
8+
end
2.14 KB
Loading
1.05 KB
Loading

0 commit comments

Comments
 (0)