Sha256: 58fe719f5df06a8a7edc5d6ff73120eb0d60b1fd1226eb15c713dd2b0cf4583b

Contents?: true

Size: 482 Bytes

Versions: 3

Compression:

Stored size: 482 Bytes

Contents

module GoSocial  
  [GoSocial.names << :assistant].flatten.each do |name|
    #autoload name.to_s.camelize.to_sym, "go_social/view_helpers/#{name}"
    autoload name.to_s.camelize.to_sym, "go_social/#{name}"
  end

  module ViewHelper
    # Include all widgets into ViewHelper to be made available
    # to be included into a View as one module (see engine)
    GoSocial.names.each do |name|
      self.send :include, "GoSocial::#{name.to_s.camelize}".constantize
    end
  end
end

Version data entries

3 entries across 2 versions & 1 rubygems

Version Path
go_social-0.1.0 lib/go_social/view_helper.rb
go_social-0.0.1 lib/go_social/view_helper.rb
go_social-0.0.1 lib/go_social/view_helper.rb~