lib/statia_gov/permissions.rb
# Save the model copying other model's permissions.
#--------------------------------------------------------------------------
Save the model copying other model's permissions.
Save the model copying other model ' s permissions .
def save_with_model_permissions(model)
        self.access    = model.access
        self.user_ids  = model.user_ids
        self.group_ids = model.group_ids
        save
      end
def save_with_model_permissions ( model ) self . access = model . access self . user_ids = model . user_ids self . group_ids = model . group_ids save end
Save the model copying other model's permissions.
Save the model copying other model ' s permissions .
model