Permalink
Browse files

Move helper to main module

  • Loading branch information...
Sebastian von Conrad
Sebastian von Conrad committed Jan 28, 2012
1 parent 73c8d60 commit 7ec5cf9bc84811a33d125068dc61becdfa86b325
Showing with 6 additions and 6 deletions.
  1. +6 −0 lib/in_bed_with/base.rb
  2. +0 −6 lib/in_bed_with/railtie.rb
View
@@ -33,4 +33,10 @@ def missing(attribute)
"Please set #{self.class.name.demodulize} #{attribute.to_s.camelize} through config.#{self.class.module_attr(attribute)} or by supplying :#{attribute} when calling in_bed_with.#{self.class.name.demodulize.underscore}."
end
end
+
+ module Helper
+ def in_bed_with
+ InBedWith
+ end
+ end
end
@@ -2,12 +2,6 @@
module InBedWith
module Rails
- module Helper
- def in_bed_with
- InBedWith
- end
- end
-
class Railtie < ::Rails::Railtie
initializer 'in_bed_with' do |app|
ActiveSupport.on_load(:action_view) do

0 comments on commit 7ec5cf9

Please sign in to comment.