Sha256: a6ad91392745fefe7c8ce0c627d16c2fa41f5cd82e563ac2b5472ddca692bdaf
Contents?: true
Size: 946 Bytes
Versions: 2
Compression:
Stored size: 946 Bytes
Contents
module SocialStream module Rails # Common methods for Rails::Railtie and Rails::Engine module Common #:nodoc: class << self def inflections ActiveSupport::Inflector.inflections do |inflect| inflect.singular /^([Tt]ie)s$/, '\1' end end def included(base) base.class_eval do config.generators.authentication :devise config.to_prepare do %w( actor activity_object ).each do |supertype| supertype.classify.constantize.load_subtype_features end # https://rails.lighthouseapp.com/projects/8994/tickets/1905-apphelpers-within-plugin-not-being-mixed-in ApplicationController.helper ActivitiesHelper end initializer "social_stream.inflections" do Common.inflections end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
social_stream-0.0.2 | lib/social_stream/rails/common.rb |
social_stream-0.0.1 | lib/social_stream/rails/common.rb |