Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decouple Refinery CMS from ActsAsIndexed #2162

Merged
merged 1 commit into from
Jan 27, 2013
Merged

Conversation

parndt
Copy link
Member

@parndt parndt commented Jan 22, 2013

No description provided.

<%= hidden_field :callback, nil, :name => 'callback', :id => nil, :value => @callback if @callback.presence %>
<%= submit_tag t('button_text', :scope => 'refinery.admin.search'), :name => nil %>
</form>
<%= render :partial => 'refinery/acts_as_indexed/admin/search',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this instead be:

<%= render 'refinery/acts_as_indexed/admin/search', local_assigns if defined?(Refinery::ActsAsIndexed::Engine) %>

@simi
Copy link
Member

simi commented Jan 22, 2013

@#{plural_name} = @#{plural_name}.with_query(params[:search])

This line blows without AAI.

It will be nice to replace it with search or similar method and delegate it to with_query with decorators in model.

@parndt
Copy link
Member Author

parndt commented Jan 25, 2013

@simi alright if we do that as "step 2"?

There is still some work to go with crudify.

Changes:

* Removed gemspec dependencies on acts_as_indexed
* Clear out search partials so that refinerycms-acts-as-indexed can implement them.
* Added Gemfile dependency on refinerycms-acts-as-indexed
@parndt parndt merged commit b25e2b6 into master Jan 27, 2013
@parndt parndt deleted the refinerycms_acts_as_indexed branch January 27, 2013 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants