Skip to content

Commit

Permalink
pass the recaptcha_required attribute of a content type to the engine
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Apr 29, 2019
1 parent 2fe2b89 commit 07af5ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gem 'rb-fsevent', '~> 0.9.1'
# Development
# gem 'locomotivecms_common', github: 'locomotivecms/common', ref: '4d1bd56' , require: false
# gem 'locomotivecms_coal', github: 'locomotivecms/coal', ref: '01a0a32', require: false
# gem 'locomotivecms_steam', github: 'locomotivecms/steam', ref: 'dabf63f67b', require: false
gem 'locomotivecms_steam', github: 'locomotivecms/steam', ref: '034eece', require: false
# gem 'duktape', github: 'judofyr/duktape.rb', ref: '20ef6a5'

# Local development
Expand Down
6 changes: 5 additions & 1 deletion lib/locomotive/wagon/decorators/content_type_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __attributes__
public_submission_enabled
public_submission_accounts
public_submission_title_template
entry_template display_settings filter_fields)
recaptcha_required entry_template display_settings filter_fields)
end

def fields
Expand Down Expand Up @@ -74,6 +74,10 @@ def tree_parent_field_name
self[:tree_parent_field_name]
end

def recaptcha_required
self[:recaptcha_required]
end

def with_relationships?
__getobj__.fields.associations.count > 0
end
Expand Down

0 comments on commit 07af5ac

Please sign in to comment.