Sha256: 1a815bd78b4e906a061686bc05582be130ab1902ee8b8990cc5ee058a09ae3d1
Contents?: true
Size: 1.03 KB
Versions: 3
Compression:
Stored size: 1.03 KB
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.app_generators.authentication :devise config.app_generators.javascript :jquery 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 ApplicationController.helper TiesHelper end initializer "social_stream.inflections" do Common.inflections end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
social_stream-0.2.3 | lib/social_stream/rails/common.rb |
social_stream-0.2.2 | lib/social_stream/rails/common.rb |
social_stream-0.2.1 | lib/social_stream/rails/common.rb |