search for: cms_admin

Displaying 2 results from an estimated 2 matches for "cms_admin".

Did you mean: cmadmin
2007 Aug 11
2
Rspec and acl_system2 plugin
...the UserMockViewHelper module handle the mocking of the current user : module UserMockViewHelper def login_as(user) @current_user = mock_model(User) @role = mock_model(Role) case user when :admin @role.stub!(:map).and_return(["admin", "cms"]) when :cms_admin @role.stub!(:map).and_return(["cms", "cms_admin"]) when :cms @role.stub!(:map).and_return(["cms"]) else @role.stub!(:map).and_return([]) end @current_user.stub!(:roles).and_return(@role) @current_user.stub!(:login).and_return(user...
2012 Oct 21
1
load_missing_constant
I have a model ''site'' defined in a sub-folder ''cms'' class Cms::Site < ActiveRecord::Base ..... the model is loaded correctly , checked in console: application.rb config.autoload_paths += Dir["#{config.root}/app/models/**/"] console >Cms::Site.all => [] Now trying to access this model from a sites_controller ( in backoffice/cms