05 Jul, 2012

6 commits

  • Rodrigo Souto
     
  • Rodrigo Souto
     
  • Rodrigo Souto
     
  • Rodrigo Souto
     
  •   1. organization_members: allows plugins to extend the list of members of
      an organization.
    
      2. has_permission?: allows plugins to add permission to some user to
      perform some action over a profile or environment. This hotspot only
      allows plugins to expand access, not to revoke access.
    
      3. new_community_hidden_fields and
      enterprise_registration_hidden_fields: allows plugins to include new
      hidden fields in the following forms.
    
      * Also including a monkey patch to include some features from the gem
        fake_arel that requires activesupport-2.3.14 and
        activerecord-2.3.14. This them allows OR with scopes without loading
        them.
    Rodrigo Souto
     
  •   * Every class now can declare that it is able to inlcude hotspots by
        declaring 'acts_as_having_hotspots'. It's important to note that
        every class that have hotspots must define an instance method named
        'environment' that returns the environment associated with the
        instance.
    
      * Now the enabled_plugins method is centralized in the Thread.current
        making the plugins instantiation happen only once by Thread. Every
        request reinstantiate the plugins since every request creates a new
        Thread. The models that access this method only instantiate it if it
        wasn't instantiated already.
    
      * Since the models doesn't reinstantiate the plugins in the same
        Thread and the tests run in only one Thread, the tests that have
        some plugin stuff must clean the instantiation in the teardown.
    Rodrigo Souto
     

25 May, 2012

1 commit


23 May, 2012

1 commit


22 May, 2012

5 commits


17 May, 2012

4 commits


16 May, 2012

16 commits


14 May, 2012

3 commits


13 May, 2012

3 commits


10 May, 2012

1 commit