public this repo is viewable by everyone
Description: a ruby on rails plugin to create and display a social feed
Homepage: http://upstream-berlin.com/blog/open-source/#social_feed
Clone URL: git://github.com/langalex/social_feed.git
fix: configuration object was not accessible from classes
Alexander Lang (author)
19 days ago
commit  42613fb213fe912bbc1733d4b616fa9e2a0db8b9
tree    8e21f7eb843cd7e4ab76c5a6b008f8b9dc651732
parent  0ab7bbdf237aa0f8ee57bca78749eb36720b4a06
...
2
3
4
5
 
6
7
8
...
2
3
4
 
5
6
7
8
0
@@ -2,7 +2,7 @@ require 'if_not_nil'
0
 
0
 # configuration
0
 require 'ostruct'
0
-SocialFeedConf = OpenStruct.new :sender_email => '<no-reply@mydomain.com>'
0
+SocialFeed::Conf = OpenStruct.new :sender_email => '<no-reply@mydomain.com>'
0
 
0
 
0
 ActionController::Base.helper(SocialFeed::SocialFeedHelper)
...
6
7
8
9
 
10
11
12
...
6
7
8
 
9
10
11
12
0
@@ -6,7 +6,7 @@ module SocialFeed
0
       @subject = subject
0
       @body = {:event => event}
0
       @recipients = event.user.email
0
- @from = SocialFeedConf.sender_email
0
+ @from = SocialFeed::Conf.sender_email
0
       @sent_on = Time.now
0
     end
0
   

Comments

    No one has commented yet.