Skip to content

Commit

Permalink
Fix organization update path. Specs didn't catch this, may need re-th…
Browse files Browse the repository at this point in the history
…inking
  • Loading branch information
mattbeedle committed Jan 17, 2014
1 parent 90abab4 commit aa7b91d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/capsule_crm/organization.rb
Expand Up @@ -24,6 +24,7 @@ class Organization < CapsuleCRM::Party

persistable_config do |config|
config.create = lambda { |org| "organisation" }
config.update = lambda { |org| "organisation" }
config.destroy = lambda { |org| "party/#{org.id}" }
end

Expand All @@ -33,6 +34,8 @@ class Organization < CapsuleCRM::Party

validates :name, presence: true

after_save :save_custom_fields

has_many :people

# Public: Get all people from Capsule. The list can be restricted
Expand Down

0 comments on commit aa7b91d

Please sign in to comment.